[Twisted-Python] UDP Factories

Kevin Rosenjack krosenjack at hotmail.com
Fri Sep 19 18:40:43 EDT 2003


Your not coding for a UPnP device by any chance, are you?


>From: "Justin Johnson" <justinjohnson at fastmail.fm>
>Reply-To: twisted-python at twistedmatrix.com
>To: "Twisted-Python" <twisted-python at twistedmatrix.com>
>Subject: Re: [Twisted-Python] UDP Factories
>Date: Fri, 19 Sep 2003 16:18:32 -0600
>
>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
>
>_______________________________________________
>Twisted-Python mailing list
>Twisted-Python at twistedmatrix.com
>http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

_________________________________________________________________
Get 10MB of e-mail storage! Sign up for Hotmail Extra Storage.  
http://join.msn.com/?PAGE=features/es





More information about the Twisted-Python mailing list