Go to the latest version of this document.

# ``twisted`.`internet`.`endpoints`.`AdoptedStreamServerEndpoint``

class documentation

`class AdoptedStreamServerEndpoint: (source)`

Constructor: `AdoptedStreamServerEndpoint(reactor, fileno, addressFamily)`

Implements interfaces: `twisted.internet.interfaces.IStreamServerEndpoint`

View In Hierarchy

An endpoint for listening on a file descriptor initialized outside of Twisted.

Method | `__init__` | No summary
Method | `listen` | Implement `IStreamServerEndpoint.listen` to start listening on, and then close, `self._fileno`.
Instance Variable | `addressFamily` | Undocumented
Instance Variable | `fileno` | Undocumented
Instance Variable | `reactor` | Undocumented
Class Variable | `_setNonBlocking` | Undocumented
Instance Variable | `_used` | A `bool` indicating whether this endpoint has been used to listen with a factory yet. `True` if so.

def __init__(self, reactor, fileno, addressFamily): (source)

Parameters
reactor | An `IReactorSocket` provider.
fileno | An integer file descriptor corresponding to a listening SOCK_STREAM socket.
addressFamily | The address family of the socket given by `fileno`.

def listen(self, factory): (source)
from `twisted.internet.interfaces.IStreamServerEndpoint`

Implement `IStreamServerEndpoint.listen` to start listening on, and then close, `self._fileno`.

addressFamily = (source)

Undocumented

fileno = (source)

Undocumented

reactor = (source)

Undocumented

_setNonBlocking = (source)

Undocumented

_used: `bool` = (source)

A `bool` indicating whether this endpoint has been used to listen with a factory yet. `True` if so.