Twisted vs Python Sockets

Michael Palmer m_palmer45 at yahoo.ca
Fri Sep 19 16:25:06 CEST 2008


On Sep 18, 4:24 pm, Fredrik Lundh <fred... at pythonware.com> wrote:
> James Matthews wrote:
> > I am wondering what are the major points of twisted over regular python
> > sockets. I am looking to write a TCP server and want to know the pros
> > can cons of using one over the other.
>
> Twisted is a communication framework with lots of ready-made components:
>
>    http://twistedmatrix.com/trac/wiki/TwistedAdvantage
>
> Regular sockets are, well, regular sockets.  No more, no less.
>
> </F>

Depends on what you want your TCP server to do. Just to mention it,
there is module SocketServer in the standard library that already
contains various server classes, including a TCP server.



More information about the Python-list mailing list