Re: Receive UDP broadcast packets with OTRcvUData
Re: Receive UDP broadcast packets with OTRcvUData
- Subject: Re: Receive UDP broadcast packets with OTRcvUData
- From: Quinn <email@hidden>
- Date: Fri, 29 Oct 2004 15:56:33 +0100
Title: Re: Receive UDP broadcast packets with
OTRcvUData
At 12:09 +0200 29/10/04, Matthieu Beghin wrote:
I create a Synchrone
socket and set it non blockling. It receives broadcast on
2.255.255.255 (ips are 2.x.x.x).
Sometimes I have to
answer by broadcast and I get the error
kEACCESErr -3212
Permission denied
when calling
OTSndUData. If I send packets to a specific machine, it works, but not
broadcast.
IIRC you have to send to the /subnet/ broadcast address.
That is, if you're IP is 1.2.3.4 and your subnet mask is 255.255.0.0,
you have to send your packet to 1.2.255.255.
S+E
--
Quinn "The
Eskimo!"
<http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications,
Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden