Path: csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.linkpendium.com!news.linkpendium.com!panix!not-for-mail From: Grant Edwards Newsgroups: comp.lang.python Subject: Re: Problem receiving UDP broadcast packets. Date: Wed, 20 Apr 2011 15:37:53 +0000 (UTC) Organization: PANIX Public Access Internet and UNIX, NYC Lines: 36 Message-ID: References: <4dae172e$0$65870$e4fe514c@news.xs4all.nl> <4dae1d82$0$81483$e4fe514c@news.xs4all.nl> NNTP-Posting-Host: dsl.comtrol.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: reader1.panix.com 1303313873 7664 64.122.56.22 (20 Apr 2011 15:37:53 GMT) X-Complaints-To: abuse@panix.com NNTP-Posting-Date: Wed, 20 Apr 2011 15:37:53 +0000 (UTC) User-Agent: slrn/pre0.9.9-102 (Linux) Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:3723 On 2011-04-20, Adam Tauno Williams wrote: > On Wed, 2011-04-20 at 06:07 -0400, Sherm Pendley wrote: >> 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? > > On LINUX this is called "avahi", which has Python bindings. Avahi > auto-configuration / discovery works very well. > > > > > > > See also: > > at least you may be able to lift code from them (License is non-viral > MIT) I've looked at those protocols and they aren't particularly suited to what we want to do. One of our requirements is to be able to discover a device with a static IP address (or no IP address?) that isn't on the same subnet -- and I don't see how those protocols can do that. Since the management program already has to implement the UDP based protocol I'm working on, it would be a big win if I didn't have to make the management program add support for a second protocol. -- Grant Edwards grant.b.edwards Yow! Are we THERE yet? at My MIND is a SUBMARINE!! gmail.com