[Twisted-Python] Simple Epoll Reactor question

Andrew Francis andrewfr_ice at yahoo.com
Sat Jul 18 12:41:08 MDT 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())
epollreactor.run()

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

What am I doing wrong? Thanks in advance.

Cheers,
Andrew







      




More information about the Twisted-Python mailing list