tcp_socket |
An os_tcp_socket
enables reliable connection-oriented communication between a server socket and a
client socket. The server constructs an os_tcp_connection_server
and binds it to an address that is known to its client. The server then waits
for an incoming connection request using accept() .
A client creates a stream socket and connects it to the server socket using connect_to()
. When the connection is made, the server's accept()
function connects its socket argument to the client socket. Data written to the
server socket appears as input to the client socket; data written to the client
socket appears as input to the server socket.
enum os_tcp_socket::bind_t
{
bound,
unbound
};
os_tcp_socket::bound (default),
constructs a TCP socket with a unique local IP address; otherwise,
constructs an unbound socket. Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
Throws: os_network_toolkit_error
os_adapter for this socket. Throws: os_network_toolkit_error
true if this socket should transmit
periodically to keep the connection alive. Throws: os_network_toolkit_error
Copyright©1994-2026 Recursion
Software LLC
All Rights Reserved - For use by licensed users only.