Example #1
0
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

from __future__ import absolute_import, division

from twisted.application.reactors import Reactor
from twisted.python.compat import _PY3

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

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

poll = Reactor('poll', 'twisted.internet.pollreactor',
               'poll(2)-based reactor.')
epoll = Reactor('epoll', 'twisted.internet.epollreactor',
                'epoll(4)-based reactor.')

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

__all__ = [
    "default",
    "select",
    "poll",
    "epoll",
    "kqueue",
]
Example #2
0
# Copyright (c) 2006 Twisted Matrix Laboratories.
# See LICENSE for details.

from twisted.application.reactors import Reactor

default = Reactor('default', 'twisted.internet.default',
                  'The best reactor for the current platform.')

select = Reactor('select', 'twisted.internet.selectreactor',
                 'select(2)-based reactor.')
wx = Reactor('wx', 'twisted.internet.wxreactor',
             'wxPython integration reactor.')
gtk = Reactor('gtk', 'twisted.internet.gtkreactor',
              'Gtk1 integration reactor.')
gtk2 = Reactor('gtk2', 'twisted.internet.gtk2reactor',
               'Gtk2 integration reactor.')
glib2 = Reactor('glib2', 'twisted.internet.glib2reactor',
                'GLib2 event-loop integration reactor.')
glade = Reactor('debug-gui', 'twisted.manhole.gladereactor',
                'Semi-functional debugging/introspection reactor.')
win32er = Reactor('win32', 'twisted.internet.win32eventreactor',
                  'Win32 WaitForMultipleObjects-based reactor.')
poll = Reactor('poll', 'twisted.internet.pollreactor',
               'poll(2)-based reactor.')
epoll = Reactor('epoll', 'twisted.internet.epollreactor',
                'epoll(4)-based reactor.')
cf = Reactor('cf', 'twisted.internet.cfreactor',
             'CoreFoundation integration reactor.')
kqueue = Reactor('kqueue', 'twisted.internet.kqreactor',
                 'kqueue(2)-based reactor.')
iocp = Reactor('iocp', 'twisted.internet.iocpreactor',
Example #3
0
# Copyright 2009 VIFF Development Team.
#
# This file is part of VIFF, the Virtual Ideal Functionality Framework.
#
# VIFF is free software: you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License (LGPL) as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# VIFF is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
# Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with VIFF. If not, see <http://www.gnu.org/licenses/>.

# This will register the VIFF reactor so that "trial --reactor viff"
# can install it.
from twisted.application.reactors import Reactor
viff = Reactor('viff', 'viff.reactor', 'The re-entrent VIFF reactor.')
Example #4
0
"""
Twisted plugin providing the tulip/asyncio-based reactor.
"""

from twisted.application.reactors import Reactor

asyncio = Reactor('tulip', 'txtulip.reactor',
                  'A reactor based on the tulip/asyncio library.')
Example #5
0
# Copyright (c) 2001-2010 Twisted Matrix Laboratories.
# see LICENSE for details

from twisted.application.reactors import Reactor

qt5 = Reactor('qt5', 'qt5reactor', 'PyQt5 integration reactor')
Example #6
0
# Copyright (c) 2001-2007 Twisted Matrix Laboratories.
# This file is licensed under GPLv2


from twisted.application.reactors import Reactor

qt4 = Reactor('qt4', 'qt4reactor', 'Qt4 integration reactor')
qt4bad = Reactor('qt4bad', 'qt4reactor_bad', 'Qt4 broken reactor')

Example #7
0
from twisted.application.reactors import Reactor
e2 = Reactor('e2', 'e2reactor', 'enigma2 integration reactor')
Example #8
0
# Copyright (c) Twisted Matrix Laboratories.
# See LICENSE for details.

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",
Example #9
0
# Copyright (c) 2001-2010 Twisted Matrix Laboratories.
# see LICENSE for details

from twisted.application.reactors import Reactor

qt4 = Reactor('qt4', 'qt4reactor', 'PyQt4 integration reactor')
pyqt4 = Reactor('pyqt4', 'qtreactor.pyqt4reactor', 'PyQt4 integration reactor')
pyside4 = Reactor('pyside4', 'qtreactor.pyside4reactor',
                  'PySide4 integration reactor')
qt4bad = Reactor('qt4bad', 'qt4reactor_bad', 'Qt4 broken reactor')
Example #10
0
# Copyright (c) 2001-2018 Twisted Matrix Laboratories.
# see LICENSE for details

from twisted.application.reactors import Reactor

qt = Reactor('qt', 'qreactor', 'Qt integration reactor')