Re: lftp as a c/c++ library
Randall McPherson <[email protected]> Tue, 17 Feb 2015 08:22:25 -0500
| Newsgroups | gmane.network.lftp.user |
|---|---|
| Message-ID | <CAF9Un8BZP2emVoNE1JT-_L=0-JeMkavd=_tD_TzrWaNiu+GxoA@mail.gmail.com> |
Thanks for the pointers to the task and job libraries, that should be enough to get started. On Mon, Feb 16, 2015 at 7:21 AM, Alexander V. Lukyanov <[email protected]> wrote: > On Fri, Feb 13, 2015 at 09:56:02AM -0500, Randall McPherson wrote: > > lftp is the best sftp / ftp client I know of, especially for gracefully > > handling the many non-compliant ftp server implementations. It would be > > awesome to use it as a c/c++ library, calling it directly from other > code. > > Is it feasible to use part of the lftp code as a library and has anyone > > done this? I couldn't find anything in the man page or other > documentation > > saying definitively either way. I've built a small tool in the past that > > runs it using a script file, (`lftp -f`) but it would be great if it > could > > be called more interactively as a library. > > It's possible to link to liblftp-tasks and liblftp-jobs libraries. The API > is > not documented though, there are just several examples in the lftp sources. > > -- > Alexander. > -- - Randall _______________________________________________ lftp mailing list [email protected] http://univ.uniyar.ac.ru/mailman/listinfo/lftp