From: Sherm Pendley Newsgroups: comp.lang.python Subject: Re: Problem receiving UDP broadcast packets. References: <4dae172e$0$65870$e4fe514c@news.xs4all.nl> <4dae1d82$0$81483$e4fe514c@news.xs4all.nl> Date: Wed, 20 Apr 2011 06:07:21 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (darwin) Cancel-Lock: sha1:0/bzNoGs4A8yn/y8oFL3txoEFvo= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: $$akwdlfiumnyt.news.x-privat.org Organization: X-Privat.Org NNTP Server - http://www.x-privat.org Lines: 23 X-Authenticated-User: $$ww157ly26rg10c5o-su28nz X-Complaints-To: abuse@x-privat.org Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!newsfeed.x-privat.org!x-privat.org!not-for-mail Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3675 Grant Edwards writes: > I'm trying to implement a device discovery/configuration protocol that > uses UDP broadcast packets to discover specific types of devices on > the local Ethernet segment. The management program broadcasts a > discovery command to a particular UDP port. All devices who get that > packet are expected to answer regardless of thier current IP address. Have you looked at the source for Apple's Bonjour? Might be interesting to see how it does announcement/discovery. Or maybe just use it directly, if this happens to be a case of "gee, I didn't know that wheel had already been invented." :-) sherm-- -- Sherm Pendley Cocoa Developer