aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/Twisted/py2/twisted/plugins/twisted_reactors.py
blob: ebb474ad7faab252207b51260a3a976c5cac9dcb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

from __future__ import absolute_import, division

from twisted.application.reactors import Reactor

__all__ = []

default = Reactor(
    'default', 'twisted.internet.default',
    'A reasonable default: poll(2) if available, otherwise select(2).')
__all__.append('default')

select = Reactor(
    'select', 'twisted.internet.selectreactor', 'select(2) based reactor.')
__all__.append('select')

poll = Reactor(
    'poll', 'twisted.internet.pollreactor', 'poll(2) based reactor.')
__all__.append('poll')

epoll = Reactor(
    'epoll', 'twisted.internet.epollreactor', 'epoll(4) based reactor.')
__all__.append('epoll')

kqueue = Reactor(
    'kqueue', 'twisted.internet.kqreactor', 'kqueue(2) based reactor.')
__all__.append('kqueue')

cf = Reactor(
    'cf' , 'twisted.internet.cfreactor',
    'CoreFoundation based reactor.')
__all__.append('cf')

asyncio = Reactor(
    'asyncio', 'twisted.internet.asyncioreactor',
    'asyncio based reactor')
__all__.append('asyncio')

wx = Reactor(
    'wx', 'twisted.internet.wxreactor', 'wxPython based reactor.')
__all__.append('wx')

gi = Reactor(
    'gi', 'twisted.internet.gireactor',
    'GObject Introspection based reactor.')
__all__.append('gi')

gtk3 = Reactor(
    'gtk3', 'twisted.internet.gtk3reactor', 'Gtk3 based reactor.')
__all__.append('gtk3')

gtk2 = Reactor(
    'gtk2', 'twisted.internet.gtk2reactor', 'Gtk2 based reactor.')
__all__.append('gtk2')

glib2 = Reactor(
    'glib2', 'twisted.internet.glib2reactor',
    'GLib2 based reactor.')
__all__.append('glib2')

win32er = Reactor(
    'win32', 'twisted.internet.win32eventreactor',
    'Win32 WaitForMultipleObjects based reactor.')
__all__.append('win32er')

iocp = Reactor(
    'iocp', 'twisted.internet.iocpreactor',
    'Win32 IO Completion Ports based reactor.')
__all__.append('iocp')