• 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
broadcasting with sockets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

broadcasting with sockets


  • Subject: broadcasting with sockets
  • From: Robert Palmer Jr <email@hidden>
  • Date: Fri, 8 Aug 2003 08:33:16 -0400

Sorry if this is a repeat, I am reposting because I was having some mail problems. I never got my own post, and didn't see any responses.

This isn't really cocoa specific, so if there is a better list for posting this, let me know.

I'm working on my cocoa application, which does some network communication. I have run into a problem and need some help. I need to send a general network broadcast (IP = 255.255.255.255), but under BSD implementations of sockets, if I specify the general broadcast address, the sockets layer automatically masks it to the interface's subnet, thus creating a subnet broadcast (e.g. if the subnet mask is 255.255.255.0 and my IP is 192.168.20.73, then the broadcast would be 192.168.20.255). I MUST have a full general broadcast. Steven's book says that BSD v3.0 includes a new flag IP_ONESBROADCAST (pg 471) that will do this, but I can't find any reference to this in the OS X headers or documentation (or man pages).

Does anyone know how to get OS X to send a general broadcast instead of a subnet broadcast?

Robert Palmer, Jr
email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: String Encoding Detection (Revisited)
  • Next by Date: Re: IB Woes
  • Previous by thread: broadcasting with sockets
  • Next by thread: find all processes with windows
  • Index(es):
    • Date
    • Thread