Right, thanks a ton!

On Wed, Jul 24, 2013 at 11:37 PM, Peter Stuge <[email protected]> wrote:
> Atri Sharma wrote:
>> the issue I am facing is that I need to detect that I have a
>> new incoming connection and then spawn a new thread for forwarding it
>> to the local port,right?
>
> No. You should study basic single-threaded C programming using
> select() with multiple file descriptors. You don't need threads.
>
>
> //Peter
> _______________________________________________
> libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel



-- 
Regards,

Atri
l'apprenant
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to