Re: Receive UDP broadcast packets with OTRcvUData
Re: Receive UDP broadcast packets with OTRcvUData
- Subject: Re: Receive UDP broadcast packets with OTRcvUData
- From: "Matthieu Beghin" <email@hidden>
- Date: Wed, 3 Nov 2004 14:50:00 +0100
Title: Re: Receive UDP broadcast packets with OTRcvUData
I still cannot send myUDP broadcast. This is really
strange.
I send it on the subnet broadcast adress:
2.255.255.255 (ip mask 255.0.0.0)
I create a Synchrone socket and set it non
blockling. It receives broadcast on 2.255.255.255.
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.
I successfully set the IP_BROADCAST option to my
socket (no error & status == T_SUCCESS).
I tried setting this option before & after
binding the socket.
The socket is bind to
kOTAnyInetAdress.
The FireWall is off.
Thanks for your help.
Matthieu Beghin
----- Original Message -----
Sent: Friday, October 29, 2004 3:56
PM
Subject: 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
email sent to email@hidden
|
_______________________________________________
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