Skip to main content

Module connection

Module connection 

Source
Expand description

Exposes the connection runtime module.

§Examples

ⓘ
use pharos_native::runtime::connection;

Structs§

NativeConnection
Native connection wrapper used by the runtime for TCP and Unix transports.

Enums§

NativeTransportType
Transport families supported by the native connection wrapper.

Functions§

connection_accept_next
Accepts the next TCP connection from a native listener.
connection_apply_timeouts
Applies bounded read and write timeouts to a native connection.
connection_close
Closes one connection and clears its owned stream.
connection_close_socket
Closes the underlying socket transport.
connection_detect_transport
Returns the transport kind currently attached to a connection.
connection_flush
Performs connection flush.
connection_format_sockaddr
Formats endpoint text without exposing platform socket handles or FFI state.
connection_init
Initializes a metadata-only connection before a transport is attached.
connection_local_info
Performs connection local info.
connection_peer_info
Performs connection peer info.
connection_populate_endpoint_info
Refreshes peer and local endpoint metadata from the attached stream.
connection_read
Reads at most one caller-provided buffer from the attached transport.
connection_reset
Resets a connection to an empty metadata-only state.
connection_send
Sends the complete buffer over the attached transport, retrying short writes.
connection_shutdown
Performs connection shutdown.
connection_shutdown_socket
Shuts down both directions of the attached socket and preserves close semantics.
connection_transport_type
Performs connection transport type.
connection_transport_type_name
Performs connection transport type name.
connection_write
Writes one complete caller-provided buffer to the attached transport.