UDP recvfrom seems to report local not remote address (bug, fluke , documentation error)

Mike Fletcher mfletch at tpresence.com
Mon May 22 18:06:23 CEST 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.
Enjoy yourselves,
Mike

__________________________________
 Mike C. Fletcher
 Designer, VR Plumber
 http://members.home.com/mcfletch

-------------- next part --------------
A non-text attachment was scrubbed...
Name: udpport.py
Type: application/octet-stream
Size: 4737 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20000522/c6b43d67/attachment.obj>


More information about the Python-list mailing list