Re: Socket programming design problem

2005-12-22 Thread Dan Sommers
On Thu, 22 Dec 2005 22:12:09 +, David <[EMAIL PROTECTED]> 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 ther

Re: Socket programming design problem

2005-12-22 Thread John J. Lee
David <[EMAIL PROTECTED]> writes: [...] > 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

Socket programming design problem

2005-12-22 Thread David
After programming with Python for a few hours, I've come up with some code: http://p.shurl.net/3n. However, now I've realised there's a bit of a problem with the original design. I have a number of questions, if anybody could answer I'd be grateful. a) Big problem, I can't see how to receive fro