[medusa] [comp.lang.python] Async sockets.

Ender kthangavelu@e...
Tue, 24 Oct 2000 12:52:08 -0700

simuran@h... wrote:
> Hi.
> I think this question would be more appropriate here. Any help would
> be greatly appreatiated.
> I'm giving up on trying to understand how asyncore works. I need help :)
> What i'm trying to do is to write a piece of software that just would
> redirect TCP connections. Trick is that it should accept multiple
> connections on one (fixed) port and forward the data to remote host:port,
> where port is being taken from range of available values, and once taken it
> can't be used again (on the remote side i'm dealing with thing that doesn't
> accept more than one connection per port).
> I really need a working example/advice on how to do simple port forwarding
> with asyncore or multithreading.

port forwarding. the simple_proxy_server.py in the docs

multithreading -- zope's zserver or webware's multithreadedappserver