A few trivial corrections, to my own post :-( tc_sock = socket(socket... should be tc_sock = socket.socket(socket... of course
and, (while I'm here) when I stated that calling connect on an unbound socket caused a ephemeral port to be assigned, I should have written "calling connect on an unbound _UDP_ socket, etc. " Cheers, Keir. -- http://mail.python.org/mailman/listinfo/python-list