Esempio n. 1
0
def install():
    """
    Configure the twisted mainloop to be run inside the glib mainloop.
    """
    reactor = Glib2Reactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
Esempio n. 2
0
def install():
    """
    Install the epoll() reactor.
    """
    p = EPollReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(p)
Esempio n. 3
0
def portableInstall():
    """Configure the twisted mainloop to be run inside the gtk mainloop.
    """
    reactor = PortableGtkReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
    return reactor
Esempio n. 4
0
def install():
    """
    Install the epoll() reactor.
    """
    p = EPollReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(p)
Esempio n. 5
0
def install():
    """
    Configure the twisted mainloop to be run inside the glib mainloop.
    """
    reactor = Glib2Reactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
Esempio n. 6
0
def install():
    """
    Configure the twisted mainloop to be run inside the wxPython mainloop.
    """
    reactor = WxReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
    return reactor
Esempio n. 7
0
def install(runLoop=None):
    """Configure the twisted mainloop to be run inside CFRunLoop.
    """
    reactor = CFReactor(runLoop=runLoop)
    reactor.addSystemEventTrigger('after', 'shutdown', reactor.cleanup)
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
    return reactor
Esempio n. 8
0
def install(runLoop=None):
    """Configure the twisted mainloop to be run inside CFRunLoop.
    """
    reactor = CFReactor(runLoop=runLoop)
    reactor.addSystemEventTrigger('after', 'shutdown', reactor.cleanup)
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
    return reactor
Esempio n. 9
0
def install():
    """
    Configure the twisted mainloop to be run inside the wxPython mainloop.
    """
    reactor = WxReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
    return reactor
Esempio n. 10
0
def install(useGtk=True):
    """
    Configure the twisted mainloop to be run inside the gtk mainloop.

    @param useGtk: should glib rather than GTK+ event loop be
        used (this will be slightly faster but does not support GUI).
    """
    reactor = Gtk2Reactor(useGtk)
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
    return reactor
Esempio n. 11
0
def install(useGtk=True):
    """
    Configure the twisted mainloop to be run inside the gtk mainloop.

    @param useGtk: should glib rather than GTK+ event loop be
        used (this will be slightly faster but does not support GUI).
    """
    reactor = Gtk2Reactor(useGtk)
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
    return reactor
Esempio n. 12
0
def install():
    r = IOCPReactor()
    main.installReactor(r)
Esempio n. 13
0
def install():
    k = KQueueReactor()
    main.installReactor(k)
Esempio n. 14
0
def install():
    """Configure the twisted mainloop to be run using the select() reactor.
    """
    reactor = SelectReactor()
    from reqs.twisted.internet.main import installReactor
    installReactor(reactor)
Esempio n. 15
0
def install():
    k = KQueueReactor()
    main.installReactor(k)
Esempio n. 16
0
def install():
    r = IOCPReactor()
    main.installReactor(r)