[Twisted-Python] UDP Factories

Itamar Shtull-Trauring itamar at itamarst.org
Fri Sep 19 22:22:33 EDT 2003

On Fri, 19 Sep 2003 18:00:11 -0400
Jp Calderone <exarkun at intarweb.us> wrote:

>   If you want to share state between different DatagramProtocol
>   instances,
> give them a reference to a common object manually (not a factory, but
> perhaps a service), or reconsider and use a single instance to talk to
> all your clients.  Nothing prevents you from listening on multiple
> ports with the same instance.

Not really, there's a self.transport, so you can only connect a
datagramprotocol to a single port.

Itamar Shtull-Trauring    http://itamarst.org/
Available for Python & Twisted consulting

More information about the Twisted-Python mailing list