Table of Contents

Module: poll Twisted-0.17.4/twisted/internet/poll.py

A poll() based implementation of the twisted main loop.

To install the event loop (and you should do this before any connections, listeners or connectors are added):

from twisted.internet import poll poll.install()

Imported modules   
import errno
import select
from twisted.internet import main
from twisted.python import log, threadable
Functions   
_updateRegisteration
addReader
addWriter
doPoll
initThreads
install
removeAll
removeReader
removeWriter
  _updateRegisteration 
_updateRegisteration ( fd )

Register/unregister an fd with the poller.

  addReader 
addReader ( reader )

Add a FileDescriptor for notification of data available to read.

  addWriter 
addWriter (
        writer,
        writes=writes,
        selectables=selectables,
        )

Add a FileDescriptor for notification of data available to write.

  doPoll 
doPoll (
        timeout,
        reads=reads,
        writes=writes,
        selectables=selectables,
        select=select,
        log=log,
        POLL_DISCONNECTED=POLL_DISCONNECTED,
        POLLIN=select.POLLIN,
        POLLOUT=select.POLLOUT,
        )

Poll the poller for new events.

  initThreads 
initThreads ()

Do initialization for threads.

  install 
install ()

Install the poll()-based event loop.

  removeAll 
removeAll ()

Remove all selectables, and return a list of them.

  removeReader 
removeReader ( reader )

Remove a Selectable for notification of data available to read.

  removeWriter 
removeWriter ( writer,  writes=writes )

Remove a Selectable for notification of data available to write.


Table of Contents

This document was automatically generated on Sat Apr 20 01:30:49 2002 by HappyDoc version 2.0