[Twisted-Python] Multiplexing multiple transports over one

Tommi Virtanen tv at twistedmatrix.com
Fri Sep 9 02:23:11 EDT 2005


Stefano Masini wrote:
> I'm looking for some mechanism that allows me to multiplex multiple
> protocols over the same connection. Say I open a socket on port 3000,
> and I run both http and smtp over it. Of course this is sort of a port
> redirection thing, like ssh does, so I need a way to specify which
> host and port should be contacted by the other end of the tunnel.
> 
> It looks like consh.ssh.forwarding should do exactly this, but since I
> never used it, does it only do it over ssh? Or can I use it over a
> simple tcp connection as well? I'm worried about the encryption
> overhead.

Conch is SSH only. If you don't want that, try SOCKS or BXXP.
There is a SOCKS implementation in twisted.




More information about the Twisted-Python mailing list