broadcasting with sockets
broadcasting with sockets
- Subject: broadcasting with sockets
- From: Robert Palmer Jr <email@hidden>
- Date: Thu, 7 Aug 2003 13:37:48 -0400
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.