| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | from twisted.application.reactors import Reactor |
|---|
| 5 | |
|---|
| 6 | default = Reactor( |
|---|
| 7 | 'default', 'twisted.internet.default', |
|---|
| 8 | 'The best reactor for the current platform.') |
|---|
| 9 | |
|---|
| 10 | select = Reactor( |
|---|
| 11 | 'select', 'twisted.internet.selectreactor', 'select(2)-based reactor.') |
|---|
| 12 | wx = Reactor( |
|---|
| 13 | 'wx', 'twisted.internet.wxreactor', 'wxPython integration reactor.') |
|---|
| 14 | gtk = Reactor( |
|---|
| 15 | 'gtk', 'twisted.internet.gtkreactor', 'Gtk1 integration reactor.') |
|---|
| 16 | gtk2 = Reactor( |
|---|
| 17 | 'gtk2', 'twisted.internet.gtk2reactor', 'Gtk2 integration reactor.') |
|---|
| 18 | glib2 = Reactor( |
|---|
| 19 | 'glib2', 'twisted.internet.glib2reactor', |
|---|
| 20 | 'GLib2 event-loop integration reactor.') |
|---|
| 21 | glade = Reactor( |
|---|
| 22 | 'debug-gui', 'twisted.manhole.gladereactor', |
|---|
| 23 | 'Semi-functional debugging/introspection reactor.') |
|---|
| 24 | win32er = Reactor( |
|---|
| 25 | 'win32', 'twisted.internet.win32eventreactor', |
|---|
| 26 | 'Win32 WaitForMultipleObjects-based reactor.') |
|---|
| 27 | poll = Reactor( |
|---|
| 28 | 'poll', 'twisted.internet.pollreactor', 'poll(2)-based reactor.') |
|---|
| 29 | epoll = Reactor( |
|---|
| 30 | 'epoll', 'twisted.internet.epollreactor', 'epoll(4)-based reactor.') |
|---|
| 31 | cf = Reactor( |
|---|
| 32 | 'cf' , 'twisted.internet.cfreactor', |
|---|
| 33 | 'CoreFoundation integration reactor.') |
|---|
| 34 | kqueue = Reactor( |
|---|
| 35 | 'kqueue', 'twisted.internet.kqreactor', 'kqueue(2)-based reactor.') |
|---|
| 36 | iocp = Reactor( |
|---|
| 37 | 'iocp', 'twisted.internet.iocpreactor', |
|---|
| 38 | 'Win32 IO Completion Ports-based reactor.') |
|---|