interfaces296%python.module
fault.system

Interface configuration format for binding application network services.

Provides parsing, serialization, and allocation functions for application service interfaces.

TypeAlias
import

Iterable
import

Sequence0
import

files0
import

KPorts0
import

Endpoint0
import

if_select0
import

service0
import

IContext0
data
TypeAlias

IContext: TypeAlias = tuple[str, Sequence[str]]

ISpecifications0
data
TypeAlias

ISpecifications: TypeAlias = Iterable[tuple[IContext, Sequence[Endpoint]]]

if_structure294%
function
ISpecifications

if_structure(if_spec)

Parse an interface configuration file.

if_structureParameters

if_spec

The configuration text.

type

Undocumented.

if_select

Undocumented.

if_structureReturns

Iterator of pairs associating the protocol section and option set with the endpoints listed in the following indented area.

if_sequence0
function
Iterable[str]

if_sequence(if_spec)

Serialize the endpoints relative to their protocol and option set.

if_sequenceParameters

if_spec

The series of protocol identifiers and option sets associated with the sequence of fault.system.network.Endpoint instances.

if_allocate0
function
Sequence[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_spec

Filesystem path to the interface specification file.

encoding

Undocumented.

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.