[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How use ssh_select after ­fail in ssh_bind_accept?


On Tuesday 17 March 2015 12:10:51 samail@xxxxx wrote:
> Hello,
> 
> I have question about using of ssh_select.
> It's required to wait events on several descriptors (ssh and not ssh). The
> system select or ssh_select can be used for this purpose.
> 
> But I have problem with error cases after ssh_bind_accept(). Common
> algorithm is:

Hey,

you should use the ssh event loop and callbacks, see:

https://git.libssh.org/projects/libssh.git/tree/examples/ssh_server_fork.c?h=v0-7


	-- andreas

-- 
Andreas Schneider                   GPG-ID: CC014E3D
www.cryptomilk.org                asn@xxxxxxxxxxxxxx


Archive administrator: postmaster@lists.cynapses.org