[Twisted-Python] the magical port 0
11 May
2001
11 May
'01
9:26 p.m.
Hello, As you might know, binding to port 0, actually binds an unallocated port; but despite how useful this might be, twisted.net returns port 0 anyway. The fix is easy, and that is to set port = skt.getsockname()[1] right after it has been binded. I don't if this applies to win32, or any other platform, but I assume that it does. I have not done this in CVS, but I hope someone with more insight into twisted.net could do it :) phed www.informative.f2s.com (be gone evil .zip-hating provider)
8357
Age (days ago)
8358
Last active (days ago)
1 comments
2 participants
participants (2)
-
Glyph Lefkowitz
-
grolgh