Socket programming design problem

Dan Sommers me at
Fri Dec 23 01:44:02 CET 2005

On Thu, 22 Dec 2005 22:12:09 +0000,
David <null at> wrote:

> a) Big problem, I can't see how to receive from more than one socket
> at once.  I need to do this so that data from the TCP connection can
> be sent out on the UDP one and vice versa.  Do I need a thread for
> each, or is there some other way I can listen on two sockets at once
> (maybe non-blocking ones?)

Try the select module:


Dan Sommers

More information about the Python-list mailing list