pi_portal.modules.system.socket.unix_stream_transport

UnixStreamTransport class.

class pi_portal.modules.system.socket.unix_stream_transport.UnixStreamTransport(socket_path)[source]

XML-RPC client transport using a unix socket.

Parameters:

socket_path (str) – Path to the unix socket to open.

make_connection(host)[source]

Connect to the unix socket, ignoring the host parameter.

Parameters:

host (Union[Tuple[str, Dict[str, str]], str]) – Unused parameter in this context.

Return type:

UnixStreamHTTPConnection

Returns:

A http connection over a unix socket.