On Tue, 4 May 2010, Xu, Qiang (FXSGSC) wrote:
Found that in libssh2-1.2.5/example/sftp_write.c, the flow is very simple, with libssh2_sftp_init(), libssh2_sftp_open followed by libssh2_sftp_write(). While in curl-7.20.1/lib/ssh.c, some socket operations are also involved between libssh2_sftp_open() and libssh2_sftp_write().
Yes, but the sftp_write.c example is using blocking mode so it isn't directly comparable to what libcurl does. When doing things non-blocking of course there needs to be some socket operations involved.
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
