Subject: libssh2_poll_channel_read() is deprecated?

libssh2_poll_channel_read() is deprecated?

From: Ishaan Gulrajani <igul222_at_gmail.com>
Date: Mon, 17 May 2010 00:02:03 -0400

Hi everyone,

I'm building an SSH client and am trying to get data from the read buffer. I
was originally going to do something like this:

while(libssh2_poll_channel_read(my_channel)) {
  // read some more data to stdout
}

... but the documentation here:
http://www.libssh2.org/libssh2_poll_channel_read.html

... says that this function is deprecated. Is there any replacement? How
should I go about getting the data from the read buffer?

Thanks!

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-05-17