TCP Portforwarding

Thomas Guettler guettli at thomas-guettler.de
Sat May 17 11:26:34 EDT 2003


Hi!

I want to forward a tcp port to a remote machine:

 localhost:2000 --> remote:80

All requests to localhost:2000 should be forwarded to remote:80. I
thought that this would be easy, but it is more difficult as I
thought.

I think this should be possible with less than 100 lines. Or am I
wrong?

socket.recv() needs a buffer length. Which length is advisable?

What are the pros and cons of select vs. poll?

 thomas

-- 
Thomas Guettler <guettli at thomas-guettler.de>
http://www.thomas-guettler.de






More information about the Python-list mailing list