[Twisted-Python] UDP Factories

Justin Johnson justinjohnson at fastmail.fm
Fri Sep 19 18:18:32 EDT 2003

Yeah I sent this email out real quick without looking at the doc.  Sorry.

I'm using UDP because the device I'm coding for uses UDP.  Twisted sure
saved me a ton of time.

Out of curiosity, why doesn't listenUDP accept Factories?

On Fri, 19 Sep 2003 11:03:20 -0400, "Itamar Shtull-Trauring"
<itamar at itamarst.org> said:
> On Fri, 19 Sep 2003 05:42:08 -0600
> "Justin Johnson" <justinjohnson at fastmail.fm> wrote:
> > I have a UDP protocol that subclasses DatagramProtocol.  It is working
> > fine, but I decided I wanted a protocol factory so I can keep track of
> > the list of clients.  I added the following class, which doesn't
> > nothing currently...
> You will notice the docs say nothing about factories. This is because
> listenUDP does not accept factories :) If you want to keep track of
> clients you will have to do it yourself by dispatching based on the
> host/port of a received datagram.
> Why are you using UDP, by the way?
> -- 
> Itamar Shtull-Trauring    http://itamarst.org/
> Available for Python & Twisted consulting
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

More information about the Twisted-Python mailing list