• 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
Re: Receive UDP broadcast packets with OTRcvUData
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Receive UDP broadcast packets with OTRcvUData


  • Subject: Re: Receive UDP broadcast packets with OTRcvUData
  • From: "Matthieu Beghin" <email@hidden>
  • Date: Fri, 29 Oct 2004 12:09:26 +0200

Title: Re: Receive UDP broadcast packets with OTRcvUData
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 -----
From: Quinn
To: apple network dev
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".

<http://developer.apple.com/technotes/tn/tn1145.html>

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

  • Follow-Ups:
    • Re: Receive UDP broadcast packets with OTRcvUData
      • From: Quinn <email@hidden>
References: 
 >Receive UDP broadcast packets with OTRcvUData (From: "Matthieu Beghin" <email@hidden>)
 >Re: Receive UDP broadcast packets with OTRcvUData (From: "Matthieu Beghin" <email@hidden>)
 >Re: Receive UDP broadcast packets with OTRcvUData (From: Quinn <email@hidden>)

  • Prev by Date: Re: Orderly disconnecting using PowerPlant networking classes
  • Next by Date: Re: Can I FTP to a Mac?
  • Previous by thread: Re: Receive UDP broadcast packets with OTRcvUData
  • Next by thread: Re: Receive UDP broadcast packets with OTRcvUData
  • Index(es):
    • Date
    • Thread