Re: callback userdata in multithreaded apps

2017-10-12 Thread e...@bentleyemail.net
i solved the issue by using a mutex. Set before bind accept and release after auth success/fail. Perhaps not the most efficient but its gets me moving again. -Eric > On Oct 12, 2017, at 2:17 PM, Eric Bentley wrote: > > I’m looking at the examples/samplesshd-cb.c > (https://git.libssh.org/pr

callback userdata in multithreaded apps

2017-10-12 Thread Eric Bentley
I’m looking at the examples/samplesshd-cb.c (https://git.libssh.org/projects/libssh.git/tree/examples/samplesshd-cb.c ) example and am trying to use it as a model for a multithread version that would be able to accept mul