Subject: libssh2_poll()


From: Thomas Stover <>
Date: Fri, 18 Jun 2010 01:20:39 -0500

If libssh2_poll() is depreciated, what is the correct way to deal with

If input is available on the session's socket, how do you figure out which
channels now have input that needs to be read? libssh2_channel_read() every

Also what if these bytes coming in from the socket are not for a channel
at all? I see how libssh2_session_callback_set() would let you trap some
non-channel events, but how would one tell the session that now is the time
to read from the socket? Does this just happen behind the scenes when
polling each channel? What if there are no channels?

Received on 2010-06-18