GitHub

DuplexFd

API reference for DuplexFd.

An additional descriptor both ends read and write (a socket pair): stream, if given, is written into it and its write side ended when the stream ends; what the child writes is transduced through sink if given. pipe_to keeps a duplex target duplex, replacing only its input.

Attributes

AttributeTypeDescription
streamStream[bytes, PlatformError] | None = None
sinkSink[bytes, bytes, Never, PlatformError] | None = None

Functions

__init__

__init__(stream=None, sink=None) -> None
ParameterTypeDescription
streamStream[bytes, PlatformError] | None = None
sinkSink[bytes, bytes, Never, PlatformError] | None = None