ListenFDs provides access to file descriptors inherited from systemd.

Typically ListenFDs.fromEnvironment should be used to construct a new instance of ListenFDs.

Method __init__
Class Method fromEnvironment No summary
Method inheritedDescriptors
Class Variable _START File descriptors inherited from systemd are always consecutively numbered, with a fixed lowest "starting" descriptor. This gives the default starting descriptor. Since this must agree with the value systemd is using, it typically should not be overridden. (type: int)
Instance Variable _descriptors A list of int giving the descriptors which were inherited.
_START =
File descriptors inherited from systemd are always consecutively numbered, with a fixed lowest "starting" descriptor. This gives the default starting descriptor. Since this must agree with the value systemd is using, it typically should not be overridden. (type: int)
_descriptors =
A list of int giving the descriptors which were inherited.
def __init__(self, descriptors): (source)
ParametersdescriptorsThe descriptors which will be returned from calls to inheritedDescriptors.
@classmethod
def fromEnvironment(cls, environ=None, start=None): (source)
ParametersenvironA dictionary-like object to inspect to discover inherited descriptors. By default, None, indicating that the real process environment should be inspected. The default is suitable for typical usage.
startAn integer giving the lowest value of an inherited descriptor systemd will give us. By default, None, indicating the known correct (that is, in agreement with systemd) value will be used. The default is suitable for typical usage.
ReturnsA new instance of cls which can be used to look up the descriptors which have been inherited.
def inheritedDescriptors(self): (source)
ReturnsThe configured list of descriptors.
API Documentation for Twisted, generated by pydoctor at 2018-07-14 04:53:34.