[Twisted-Python] Finding peers.

Andrew Bennetts andrew-twisted at puzzling.org
Tue Jul 8 06:55:01 EDT 2003


On Tue, Jul 08, 2003 at 08:38:18PM +1000, screwtape at froup.com wrote:
[...]
> Granted, ReactorBase.resolve() doesn't call _internalResolve if a new resolver
> has been installed (ReactorBase.installResolver()), but a quick grep
> of the Twisted source shows no mention of that method apart from its
> definition (in ReactorBase and IReactorPluggableResolver).

At a glance, it looks like you could do this, though:
    from twisted.names import client
    from twisted.internet import reactor

    reactor.installResolver(client.theResolver)

-Andrew.





More information about the Twisted-Python mailing list