Re: UDP Broadcast self send
Re: UDP Broadcast self send
- Subject: Re: UDP Broadcast self send
- From: Eli Green <email@hidden>
- Date: Wed, 10 Sep 2003 11:04:22 -0400
Hado Hein wrote:
Hi.
I have an app that has a Windows counterpart that it needs to
communicate with. Both apps broadcast UDP packets. The difference is
that the Windows version receives the packets it sends, whereas the Mac
version does not. It is fairly important that the apps behave
Well, I'm surely no expert, but receiving packets you sent _is_ a
failure in your IP stack, definitely, always. (Unless you send to
127.0.0.1 / 255.255.255.256)
You might double send packets if you need a local copy or build a some
bridging within your code.
It seems like weird behaviour to me, but Windows and Linux both behave
identically: they receive packets originating from themselves. I've
tested this with a Python script, and MacOS X appears to be the only OS
that behaves this way (although I have not tested on any other BSD-based
platforms). And I've been sending to 255.255.255.255 ... is that what
you meant? Wouldn't .256 overflow an int32 and be the same as zero?
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.