ascii-chat
Binary v0.16.50-198-g78f51665f
Library lib/v0.3.2-2240-g78f51665f
Video chat in your terminal
Loading...
Searching...
No Matches
tcp_transport_data_t Struct Reference

tcp transport data is intentionally a small, concrete record. Fields such as sockfd, owns_socket, is_connected, zerocopy_disabled give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed. More...

Data Fields

socket_t sockfd
 Connected socket descriptor.
bool owns_socket
 Close the socket when this transport is closed or destroyed.
bool is_connected
 Connection state.
bool zerocopy_disabled
 Disable copy avoidance after unsupported or copied completion.
mutex_t send_mutex
 Mutex to protect concurrent sends (multiple threads may send packets).

Detailed Description

tcp transport data is intentionally a small, concrete record. Fields such as sockfd, owns_socket, is_connected, zerocopy_disabled give callers the identity and current value they need. It is normally borrowed from, or owned by, the surrounding subsystem—not independently managed.

TCP transport implementation data

Definition at line 33 of file tcp/transport.c.

Field Documentation

◆ is_connected

bool tcp_transport_data_t::is_connected

Connection state.

Definition at line 36 of file tcp/transport.c.

Referenced by acip_tcp_transport_create().

◆ owns_socket

bool tcp_transport_data_t::owns_socket

Close the socket when this transport is closed or destroyed.

Definition at line 35 of file tcp/transport.c.

Referenced by acip_tcp_transport_create().

◆ send_mutex

mutex_t tcp_transport_data_t::send_mutex

Mutex to protect concurrent sends (multiple threads may send packets).

Definition at line 38 of file tcp/transport.c.

Referenced by acip_tcp_transport_create(), and acip_tcp_transport_set_zerocopy().

◆ sockfd

socket_t tcp_transport_data_t::sockfd

Connected socket descriptor.

Definition at line 34 of file tcp/transport.c.

Referenced by acip_tcp_transport_create().

◆ zerocopy_disabled

bool tcp_transport_data_t::zerocopy_disabled

Disable copy avoidance after unsupported or copied completion.

Definition at line 37 of file tcp/transport.c.

Referenced by acip_tcp_transport_create(), and acip_tcp_transport_set_zerocopy().


The documentation for this struct was generated from the following file: