Package pike :: Module transport :: Class PollPoller
[hide private]
[frames] | no frames]

Class PollPoller

source code

object --+    
         |    
BasePoller --+
             |
            PollPoller

Implementation of poll, available on Linux

Instance Methods [hide private]
 
__init__(self)
initialize the poller and register any kernel global structures necessary to monitor the file descriptors
source code
 
add_channel(self, transport)
begin monitoring the transport socket for read/connect events
source code
 
del_channel(self, transport)
stop monitoring the transport socket
source code
 
defer_write(self, transport)
defers a write on the given transport.
source code
 
poll(self)
Must be implemented by subclasses to execute a single iteration of the event loop.
source code

Inherited from BasePoller: loop, process_readables, process_writables

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

initialize the poller and register any kernel global structures necessary to monitor the file descriptors

Overrides: object.__init__
(inherited documentation)

add_channel(self, transport)

source code 

begin monitoring the transport socket for read/connect events

the underlying poller should not monitor Transports for writability
except when:
    * the Transport's connection has not yet been established
    * the Transport has been passed as an argument to defer_write

Overrides: BasePoller.add_channel
(inherited documentation)

del_channel(self, transport)

source code 

stop monitoring the transport socket

Overrides: BasePoller.del_channel
(inherited documentation)

defer_write(self, transport)

source code 

defers a write on the given transport. once the async poller determines that the transport can be written to, handle_write will be called

Overrides: BasePoller.defer_write
(inherited documentation)

poll(self)

source code 

Must be implemented by subclasses to execute a single iteration of the
event loop. Based on the outcome of the events, the following actions
MUST be performed

    * process_readables is called with a list of file descriptors which
      have data available for reading
    * process_writables is called with a list of file descriptors which
      have data available for writing

Overrides: BasePoller.poll
(inherited documentation)