15 Jun
2006
15 Jun
'06
2:03 a.m.
How come the Echo server example shows a factory being used? Chaz. Jean-Paul Calderone wrote:
On Wed, 14 Jun 2006 16:01:35 -0400, "Chaz."
wrote: I've written a simple protocol, factory and service and can't seem to get it to work right. It is so simple that I can't seem to figure out the problem.
Here is the code:
UDP servers don't use factories, since there is no network-level connection for which to maintain state. Instead, pass an instance of DatagramProtocol directly to listenUDP.
Jean-Paul
_______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python