• 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: Thu, 28 Oct 2004 12:11:54 +0200

I found the problem. I have to bind a socket to the broadcast address (2.255.255.255) for broadcast packets and another for packets sent to me exclusively.
Is there a way to receive bradcast packets on a socket binded to my IP address ?
 
Thanks
Matthieu Beghin
----- Original Message -----
From: Matthieu Beghin
To: apple network dev
Sent: Thursday, October 28, 2004 11:00 AM
Subject: Receive UDP broadcast packets with OTRcvUData

Hi all,
 
I can't receive UDP broadcast packets from the local network. The local network is 2.x.x.x, mask 255.0.0.0. The Firewall is off and I don't use DHCP of course.
I have an application running on a PC that broadcasts UDP packets to 2.255.255.255 and I can receive it with my PC client. I developed a Mac client with Open Transport. I'm working on OSX (but it have to be compatible and for a lot of reasons I have to use OT). I have no error code.
I don't receive anything on my Mac client with the broadcast adress. But I receive the UDP packets if I set the PC application sending packets to the IP of the Mac computer (2.0.0.7).
 
Why can't I receive broadcast packets ?
I can see the incoming packets with netstat.
 
I added the option IP_BROADCAST with OTOptionManagement but it's only usefull to send brodcast.
I'm using SyncSockets in non blocking mode.
 
Is there another option to set to receive messages sent to broadcast address ?
Has it anything to do with Synchronous / Async ?
 
Thanks a lot,
Matthieu Beghin


_______________________________________________
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>)

  • Prev by Date: Receive UDP broadcast packets with OTRcvUData
  • Next by Date: Re: [NEWBIE] How to send an email with Cocoa?
  • Previous by thread: Receive UDP broadcast packets with OTRcvUData
  • Next by thread: Re: Receive UDP broadcast packets with OTRcvUData
  • Index(es):
    • Date
    • Thread