[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
About non-blocking mode usage
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: About non-blocking mode usage
- From: Liang Qin <lqin@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 30 Oct 2014 16:55:07 -0700
- To: libssh@xxxxxxxxxx
Does anyone has an example of how to use the non-blocking mode for libssh? This include ssh_connect, ssh_userauth functions, ssh_channel functions etc. these functions will return again in non-blocking mode, in the test examples we see it just keep trying until we get ssh_ok, but this is not efficient and will cause high cpu usage, I know we should use poll or ssh_poll, but I did not find any docs or examples that shows how to use it. Could anyone give me some example? Thanks
Archive administrator: postmaster@lists.cynapses.org