[Twisted-Python] Finding peers.
Tommi Virtanen
tv at twistedmatrix.com
Tue Jul 8 01:49:40 MDT 2003
On Mon, Jul 07, 2003 at 11:38:38PM +1000, Tim Allen wrote:
> DNS-SD (DNS based Service Discovery) is the easy part - it's just a
> standard way of organising DNS records such that a set of DNS queries
> can create a useful list of things to connect to. 'Implementing' DNS-SD
> support is not at all difficult, providing there exists an API to
> request PTR and SRV records, and providing you can add them to your DNS
> server.
That exists, start reading from
twisted.internet.utils.SRVConnector.
> I haven't read the mDNS spec in detail, but the interaction between
> Twisted and the operating system's resolver seems complex. It'd be nice
> if Python had a DNS API more extensive than gethostbyname(), but it
> doesn't.
That's why Twisted (and many other serious projects) are totally
ignoring the libc resolver. The API is just too limited.
Let me say that again. Twisted implements its own resolver that
talks UDP itself. gethostbyname() is just not usable.
--
:(){ :|:&};:
More information about the Twisted-Python
mailing list