On Fri, 18 Sep 2009, Peter Stuge wrote:
Right - because send(), unlike write(), doesn't return short.
Nope, that's wrong. See below.
Why is it desirable to use send()/recv() rather than write()/read()?
Let me quote another piece of the man page:
"The only difference between send() and write(2) is the presence of flags."
... and it also explains why we want to use send() and not write(). We want
the flags.
--
/ daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel