Skip to main content

Module net

Module net 

Source
Expand description

Safe, idiomatic wrappers for OSAL networking APIs (sockets).

Structs§

FdSet
A set of file descriptors, for use with select.
Socket
A raw socket handle that ensures OS_close is called on drop.
SocketAddr
A wrapper for a CFE/OSAL socket address.
SocketProp
Properties of an OSAL socket.
TcpListener
A TCP socket server, listening for connections.
TcpStream
A TCP stream between a local and a remote socket.
UdpSocket
A UDP socket.

Enums§

SocketDomain
The domain of a socket.
SocketShutdownMode
Defines how to shut down a TCP stream.
Timeout
Timeout options for socket operations.

Functions§

get_host_name
Gets the local machine’s network host name.
get_network_id
Gets the OSAL-specific network ID of the local machine.
get_socket_id_by_name
Finds an existing socket ID by its name.
get_socket_info
Retrieves information about a socket.
select_multiple
Waits for events across multiple file handles with a relative timeout.
select_multiple_abs
Waits for events across multiple file handles with an absolute timeout.
select_single
Waits for events on a single file handle with a relative timeout.
select_single_abs
Waits for events on a single file handle with an absolute timeout.