[Twisted-Python] simple tcpgate in Twisted

Andy Leszczynski leszczynscy at yahoo.com
Sun Feb 10 22:48:16 EST 2008

Jean-Paul Calderone wrote:
> On Wed, 06 Feb 2008 09:03:11 -0600, Andy Leszczynski 
> <leszczynscy at yahoo.com> wrote:
>> Hi,
>> I need to write a simple TCP/IP gate which would accept connections, 
>> reconnect to arbitrary (address,port), retransmit all data from both 
>> ends, and finally closed the connection upon either end closing it too.
> twisted.protocols.portforward probably does something quite similar to 
> what
> you want.
thx a lot for a suggestion.  That self.transport.pause/resumeProducing
is great.

The only thing I am not sure how it works is how ProxyServer handles the
closing connection. from its external client. Is it just done in base


More information about the Twisted-Python mailing list