On Sun, 2011-06-12 at 15:48 +0300, Orestis Markou wrote:
> Hello,
> 
> I'm curious about the endpoints API that appeared. I've read the
> documentation, and I think I understand what it does, but I'm curious
> to see what parts of twisted it replaces. A lot of the documentation
> on-site is not updated (eg the finger tutorial) and it's not very
> clear whether one should use reactor.listenTCP, TCPServer or the new
> API.

TCPServer is a wrapper for listenTCP that makes a Service, i.e. a thing
you can run with twistd. So it's infrastructure for deployment. There
are Service wrappers for endpoints as well.

It's probably best not to bring up TCPServer at all when teaching
beginners, and just write a custom Service if you happen to be teaching
about twistd.


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python

Reply via email to