Thanks, but I was unable to find any example demonstrating this. In
ssh2.c, I found this comment:
/* At this point the shell can be interacted with using
* libssh2_channel_read()
* libssh2_channel_read_stderr()
* libssh2_channel_write()
* libssh2_channel_write_stderr()
*
* Blocking mode may be (en|dis)abled with: libssh2_channel_set_blocking()
* If the server send EOF, libssh2_channel_eof() will return non-0
* To send EOF to the server use: libssh2_channel_send_eof()
* A channel can be closed with: libssh2_channel_close()
* A channel can be freed with: libssh2_channel_free()
*/
But It doesn't really explain the difference between blocking and
non-blocking mode. Could you please explain or point me to the right
example? Thanks!
On May 17, 2010, at 1:00 AM, Peter Stuge <peter_at_stuge.se> wrote:
> Ishaan Gulrajani wrote:
>> How should I go about getting the data from the read buffer?
>
> Look at the examples. Your snippet of code suggests that you want
> blocking behavior, so just skip the nonblock ones.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-05-17