Package wtf :: Package opi :: Module listener :: Class Acceptor
[hide private]
[frames] | no frames]

Class Acceptor

source code

object --+
         |
        Acceptor

Acceptor for multiple connections
Instance Methods [hide private]
 
__init__(self, sockets)
Initialization
source code
tuple
__call__(self, timeout=None)
Accept a new connection
source code
tuple
_accept(self, timeout=None)
Accept a connection
source code

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

Class Variables [hide private]
  _IGNOREFAIL = set([4, 11, 71, 101, 103, 104, 105, 110, 113])
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, sockets)
(Constructor)

source code 
Initialization
Parameters:
  • sockets (iterable) - List of sockets to poll
Overrides: object.__init__

__call__(self, timeout=None)
(Call operator)

source code 
Accept a new connection
Parameters:
  • timeout (float) - Timeout in seconds
Returns: tuple
New socket and the peername
Raises:

_accept(self, timeout=None)

source code 
Accept a connection
Parameters:
  • timeout (float) - Timeout in seconds
Returns: tuple
The new connection socket and the peername
Raises: