UDP recvfrom seems to report local not remote address (bug, fluke , documentation error)
mfletch at tpresence.com
Mon May 22 12:06:23 EDT 2000
Just noticed something strange with a prototype module I've been building.
recvfrom with UDP sockets (in particular, on local host) seems to return
(message, receivingaddress) instead of (message, sendingaddress). This
isn't a huge problem, as I was planning on using channel identifiers and
message counts anyway, but there seems to be something wrong, in my
understanding, in the operation of the localhost connections, in the
operation of recvfrom, or in the documentation for recvfrom.
Any ideas? Script showing the strange operation is attached. If I
understand things correctly, the RECV lines should be printing RECV ("",
9000) length, not RECV ("", 8550) length.
Mike C. Fletcher
Designer, VR Plumber
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4737 bytes
Desc: not available
More information about the Python-list