www.libssh2.org | Daily snapshots | Mailing list archive | Docs | Examples | github

Archive Index This month's Index

Subject: Re: Multiple connections in a single SSH reverse tunnel

Re: Multiple connections in a single SSH reverse tunnel

From: Peter Stuge <peter_at_stuge.se>
Date: Wed, 24 Jul 2013 20:07:02 +0200

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
Received on 2013-07-24

the libssh2 team