Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Twisted vs Python Sockets

Reply
Thread Tools

Re: Twisted vs Python Sockets

 
 
James Mills
Guest
Posts: n/a
 
      09-19-2008
On Fri, Sep 19, 2008 at 6:24 AM, Fredrik Lundh <> 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.


There is also one more alternative:

pymills - current version 3.4

It has a different design goal to twisted
and is in no competition with twisted,
however provides:
* An event framework
* A component driven architecture
* A set of components including:
* TCPServer, TCPClient
* UDPServer, UDPClient
* Some protocol components:
* IRC
* HTTP
* SMTP
* Some other components:
* Environment
* Logger
* Stdin
* Config

A simple EchoServer is as simple as:
http://hg.shortcircuit.net.au/index....t/echoserer.py

If anyone is interested in trying this library
out, feel free. I recommend you use the
latest development branch available via
Mercurial at:
http://hg.shortcircuit.net.au/pymills/

hg clone http://hg.shortcircuit.net.au/pymills/

If you have any questions, don't hesitate
to ask me. Enjoy

cheers
James

--
--
-- "Problems are solved by method"
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: [Twisted-Python] Twisted 13.0.0 released Glyph Python 0 04-03-2013 09:36 PM
Re: [Twisted-Python] Twisted 12.3.0 released Glyph Python 0 12-27-2012 06:40 AM
Re: [Twisted-Python] Re-working a synchronous iterator to use Twisted Jean-Paul Calderone Python 0 06-17-2008 10:14 PM
Re: Twisted vs POS (Plain-old sockets) Guido Goldstein Python 1 09-04-2006 02:25 PM
sockets, select or: twisted and other file-descriptors Diez B. Roggisch Python 1 11-29-2003 10:40 PM



Advertisments