[Twisted-Python] Simple Epoll Reactor question

Andrew Francis andrewfr_ice at yahoo.com
Sat Jul 18 14:41:08 EDT 2009

Hi Folks:

I am trying to use the epollreactor. I read the "Choosing a Reactor" page. However I am not clear on how to actually install and use epollreactor.

I thought I could do the following:

from twisted.internet    import  epollreactor

# epollreactor.install()
epollreactor.listenTCP(8000, MyHttpFactory())

I get
AttributeError: 'module' object has no attribute 'listenTCP' 

What am I doing wrong? Thanks in advance.



More information about the Twisted-Python mailing list