• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UDP Broadcast self send
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: UDP Broadcast self send
      • From: Roy Lovejoy <email@hidden>
References: 
 >Re: UDP Broadcast self send (From: email@hidden (Hado Hein))

  • Prev by Date: Re: UDP Broadcast self send
  • Next by Date: Understanding MoreSecurity and MoreAuthSample
  • Previous by thread: Re: UDP Broadcast self send
  • Next by thread: Re: UDP Broadcast self send
  • Index(es):
    • Date
    • Thread