Hi all,
One more stupid question:
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.
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.
What am I missing ?
Thanks,
Matthieu beghin
----- Original Message -----
Sent: Thursday, October 28, 2004 12:31
PM
Subject: Re: Receive UDP broadcast
packets with OTRcvUData
At 12:11 +0200 28/10/04, Matthieu Beghin wrote:
Is there a way to
receive bradcast packets on a socket binded to my IP address
?
No.
Why are you binding the endpoint to your IP address. In general,
that's a bad idea. This is discussed in depth in DTS Technote 1145
"Living in a Dynamic TCP/IP Environment".
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
|