[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
libssh + libevent documention / example?
[Thread Prev] | [Thread Next]
[Date Prev] | [Date Next]
- Subject: libssh + libevent documention / example?
- From: John Dunn <John.Dunn@xxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 29 Jun 2018 18:13:18 +0000
- To: "'libssh@xxxxxxxxxx'" <libssh@xxxxxxxxxx>
I'm trying to integrate libssh into an existing libevent based application to allow my code to drive an remote shell. I'm have a couple of questions. - Is this possible? is there an example which shows how this might work? - I see the poll functions but I'm not sure how to integrate them with libevent, if possible. - my naïve approach of just calling ssh_connect() and then ssh_get_fd() and passing the resultant fd into lib event did connect to the remote machine, but I'm reading garbage out of my libevent calls. - I assume I need to call ssh_channel_request_shell() but then how does that interact with the fd that is returned from ssh_get_fd()? Any help or suggestions will be greatly appreciated John
Archive administrator: postmaster@lists.cynapses.org