• 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: UDP Broadcasts Don't Work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UDP Broadcasts Don't Work


  • Subject: Re: UDP Broadcasts Don't Work
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 22 Aug 2007 15:35:31 -0400

Quinn wrote:
A couple of points:

o If you're doing service discovery, you should be using Bonjour. Why? Two key reasons:

- It's easier get the job done because Bonjour does all the heavy lifting. No faffing around with sockets!

- Bonjour has /lots/ of smarts to minimise the amount of traffic on the network. Sysadmins the world over will love you.

<http://developer.apple.com/networking/bonjour/index.html>
Well, dim3 (www.klinksoftware.com) is a free open source 3D engine that is already chuck full of sockets and networking (and is cross-platform) and I'm pretty good at it until that one nugget of broadcasting info pulled the rug out from under my feet :) Now that I've been knocked down a peg, I'll have to claw my way back to genius. Now, dim3 can successfully auto-detect any network servers on the LAN. The only thing that broadcast is the client when you ask to join a server, so traffic is very low.
o I haven't updated it in a while, but the information in DTS Technote 1145 "Living in a Dynamic TCP/IP Environment" is still good. Specifically, it addresses lots of the issues associated with the more-difficult-than-it-seems question of "What's my IP address?"

<http://developer.apple.com/technotes/tn/tn1145.html>
Oh, yeah, that's real troublesome, without a doubt. Just getting the host and then resolving the name *seemed* OK until I got dim3 networking out to users, and then I saw that I had to go to a number of lengths, specifically querying the interfaces and looking for specific settings -- especially if somebody was running an wifi card. At this point my method never seems to fail (this statement will get me a user email in about 2 seconds from now on how it's not working.)

I've gotten it to the point where my biggest problem is when dim3 is being used by young people who don't have control over their routers and can't port forward through them but want to setup a WAN server, but that's nothing that can be fixed with code.

[>] Brian
_______________________________________________
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


  • Prev by Date: Re: UDP Broadcasts Don't Work
  • Next by Date: How to set the "sock_accept" to the blocking mode?
  • Previous by thread: Re: UDP Broadcasts Don't Work
  • Next by thread: NSURLDownload - multiple requests not working
  • Index(es):
    • Date
    • Thread