A win32event based implementation of the twisted main loop.
This requires win32all to be installed.
TODO:
1. Pass tests.
2. WaitForMultipleObjects can only handle 64 objects, so we need threads.
3. Event loop handling of writes is very problematic (use a delayed?)
4. Support GUI events.
5. Replace icky socket loopback waker with event based waker.
6. Switch everyone to a decent OS so we don't have to deal with insane APIs.
Imported modules
|
|
import Queue
import msvcrt
import os
import pywintypes
import string
import threading
import time
from twisted.internet import abstract, default
from twisted.internet.interfaces import IReactorFDSet
from twisted.python import log, threadable
import win32api
import win32con
import win32event
from win32event import CreateEvent, WaitForMultipleObjects, WAIT_OBJECT_0, WAIT_TIMEOUT, INFINITE
import win32file
from win32file import WSAEventSelect, FD_READ, FD_WRITE, FD_CLOSE, FD_ACCEPT, FD_CONNECT
import win32pipe
import win32process
import win32security
|
Functions
|
|
install
|
|
install
|
install ()
|
Classes
|
|
Process |
A process that integrates with the Twisted event loop.
|
Win32Reactor |
Reactor that uses Win32 event APIs.
|
|
|