Re: [Twisted-Python] twisted.names and multicast DNS
Brian Granger, Ph.D. Assistant Professor of Physics Santa Clara University bgranger@scu.edu Phone: 408-551-1891 Fax: 408-554-6965
jarrod.roberson@gmail.com 07/09/05 9:38 PM >>> On 7/9/05, Tim Allen
wrote
you forgot option number 4, which is what we ended up doing. Put a python binding in over the Apple code and use it integrated into Twisted. Plus you get to use it outside Twisted as well :-) I like this option as Apple's mDNS code is becoming very solid. Are the python bindings you mention available somewhere? I have thought about using mDNS with twisted for a project so any examples you can offer would be great. Brian This message scanned for viruses and SPAM at SCU (MGW2)
Brian Granger wrote:
I like this option as Apple's mDNS code is becoming very solid. Are the python bindings you mention available somewhere? I have thought about using mDNS with twisted for a project so any examples you can offer would be great.
I'm the one actually writing on the bindings. I'm trying to get permission from the company to open source them. There isn't anything proprietary there, but who knows what the legal department will say. :) Currently, I have a straight through binding that ports the C API into python. In the near future, I'm going to be overhauling it into an OO API, and then integrating into Twisted. I'll be back with questions about Twisted when I get to that point. ;) -- Jason Fritcher Software Engineer - Hosting Dev, System Software Development Earthlink, Inc fritcher@corp.earthlink.net (404) 748-7262, x22262
On Jul 11, 2005, at 8:10 AM, Jason Fritcher wrote:
Brian Granger wrote:
I like this option as Apple's mDNS code is becoming very solid. Are the python bindings you mention available somewhere? I have thought about using mDNS with twisted for a project so any examples you can offer would be great.
I'm the one actually writing on the bindings. I'm trying to get permission from the company to open source them. There isn't anything proprietary there, but who knows what the legal department will say. :)
Currently, I have a straight through binding that ports the C API into python. In the near future, I'm going to be overhauling it into an OO API, and then integrating into Twisted. I'll be back with questions about Twisted when I get to that point. ;)
Alternatively, if you're using a Mac, it's pretty trivial to just use the NSNetService stuff. You're more or less stuck supporting the OS X APIs anyway if you want OS X support, since only one mDNS responder can run on a given machine (well, IP address). -bob
Bob Ippolito wrote:
Alternatively, if you're using a Mac, it's pretty trivial to just use the NSNetService stuff. You're more or less stuck supporting the OS X APIs anyway if you want OS X support, since only one mDNS responder can run on a given machine (well, IP address).
Not at all. I'm developing the bindings on a OS X box, and by wrapping the DNSService API, it'll run on OS X, Linux, FreeBSD, Solaris and any other platform that has the DNSService API. The only difference is on OS X, I don't need to link with any extra libraries, its part of the main system lib. On other platforms, I link against libdns_sd. -- Jason Fritcher Software Engineer - Hosting Dev, System Software Development Earthlink, Inc fritcher@corp.earthlink.net (404) 748-7262, x22262
On 12 Jul 2005, at 05:57, Bob Ippolito wrote:
Alternatively, if you're using a Mac, it's pretty trivial to just use the NSNetService stuff. You're more or less stuck supporting the OS X APIs anyway if you want OS X support, since only one mDNS responder can run on a given machine (well, IP address).
You've got me worried now - I've been doing all my testing on this G5 running Panther. I haven't tried serving any mDNS records yet, but I can certainly watch all the traffic to and from the system-wide mDNS responder. If I've got this far, am I going to be OK or do you know of some other brick-wall I'll hit later on?
On 7/11/05, Tim Allen
On 12 Jul 2005, at 05:57, Bob Ippolito wrote:
Alternatively, if you're using a Mac, it's pretty trivial to just use the NSNetService stuff. You're more or less stuck supporting the OS X APIs anyway if you want OS X support, since only one mDNS responder can run on a given machine (well, IP address).
You've got me worried now - I've been doing all my testing on this G5 running Panther. I haven't tried serving any mDNS records yet, but I can certainly watch all the traffic to and from the system-wide mDNS responder.
If I've got this far, am I going to be OK or do you know of some other brick-wall I'll hit later on?
it is multicast you have have multiple listeners on the same machine on the same group. -- If you don't know what you want, you probably need a nap.
participants (5)
-
Bob Ippolito
-
Brian Granger
-
jarrod roberson
-
Jason Fritcher
-
Tim Allen