The core of Twisted is the reactor event loop. The reactor knows about network, filesystem, and timer events. It waits on and demultiplexes these events and dispatches them to waiting event handlers. Twisted takes care of abstracting away platform-specific behavior and using the underlying nonblocking APIs correctly. Twisted presents a common interface to the various event sources so that responding to events anywhere in the network stack is easy.
- 2. Building Basic Clients and Servers
- from Twisted Network Programming Essentials, 2nd Edition
- Publisher: O'Reilly Media, Inc.
- Released: March 2013
What does it mean to "demultiplex" events?
Share this highlighthttp://www.safaribooksonline.com/a/twisted-network-programming/68409/