curl-library
RE: Reflection for Secure IT Server
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 4 May 2010 11:03:52 +0200 (CEST)
Date: Tue, 4 May 2010 11:03:52 +0200 (CEST)
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.htmlReceived on 2010-05-04