class documentation

class twisted.internet.endpoints._SystemdParser: (source)

Implements interfaces: twisted.internet.interfaces.IStreamServerEndpointStringParser, twisted.plugin.IPlugin

View In Hierarchy

Stream server endpoint string parser for the systemd endpoint type.

Instance Variable prefix No summary
Method parseStreamServer Parse a stream server endpoint from a reactor and string-only arguments and keyword arguments.
Instance Variable _sddaemon A ListenFDs instance used to translate an index into an actual file descriptor.
Method _parseServer Internal parser function for _parseServer to convert the string arguments for a systemd server endpoint into structured arguments for AdoptedStreamServerEndpoint.
_sddaemon = (source)
A ListenFDs instance used to translate an index into an actual file descriptor.
def _parseServer(self, reactor, domain, index): (source)

Internal parser function for _parseServer to convert the string arguments for a systemd server endpoint into structured arguments for AdoptedStreamServerEndpoint.

ParametersreactorAn IReactorSocket provider.
domainThe domain (or address family) of the socket inherited from systemd. This is a string like "INET" or "UNIX", ie the name of an address family from the socket module, without the "AF_" prefix. (type: str)
indexAn offset into the list of file descriptors inherited from systemd. (type: str)
ReturnsA two-tuple of parsed positional arguments and parsed keyword arguments (a tuple and a dictionary). These can be used to construct an AdoptedStreamServerEndpoint.
def parseStreamServer(self, reactor, *args, **kwargs): (source)

Parse a stream server endpoint from a reactor and string-only arguments and keyword arguments.

Returnsa stream server endpoint
See AlsoIStreamClientEndpointStringParserWithReactor.parseStreamClient
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.