curl-library
Re: Just ip
Date: Wed, 20 May 2009 13:11:17 +0200 (CEST)
On Wed, 20 May 2009, junk_at_igrspace.com wrote:
> this might seem like an awkward question: can i use libcurl to do non-http,
> non-ftp, ... transfers ? Can i use it to do 'basic' socket communication.
You can with curl_easy_recv() and curl_easy_send(), but libcurl is not a very
fancy socket API so if you don't need libcurl's protocol support I think you
should reconsider why you think you need libcurl in the first place.
> Possibly using libssh2 to have SSL ?
Uh, libssh2 does SSH. You want OpenSSL, GnuTLS or NSS for SSL.
> Are there any undocumented tricks or so to allow for this ?
They are fully documented!
> See, i got comfortable with using the multi interface and i love libcurl's
> connection re-use.
But if you don't use libcurl for its protocols, then you can't do much with
the multi interface and libcurl won't be able to re-use connections...
-- / daniel.haxx.seReceived on 2009-05-20