Interface configuration format for binding application network services.
Provides parsing, serialization, and allocation functions for application service interfaces.
TypeAlias
Iterable
Sequence0
files0
KPorts0
Endpoint0
if_select0
service0
IContext0TypeAlias
IContext: TypeAlias = tuple[str, Sequence[str]]
ISpecifications0TypeAlias
ISpecifications: TypeAlias = Iterable[tuple[IContext, Sequence[Endpoint]]]
if_structure294%ISpecifications
if_structure(if_spec)
Parse an interface configuration file.
if_structureParameters
if_structureReturns
Iterator of pairs associating the protocol section and option set with the endpoints listed in the following indented area.
if_sequence0Iterable[str]
if_sequence(if_spec)
Serialize the endpoints relative to their protocol and option set.
if_sequenceParameters
if_specISpecifications
The series of protocol identifiers and option sets associated with the sequence of fault.system.network.Endpoint instances.
if_allocate0Sequence[tuple[IContext, KPorts]]
if_allocate(if_spec)
Read the interfaces configuration file, if_spec, and fault.system.network.service the identified endpoints keeping the association with the endpoint's context.
if_allocateParameters
if_allocateReturns
A sequence of pairs where the former value is the protocol and option set and the latter is the fault.system.kernel.Ports instance holding the allocated file descriptors.