Up to Documentation.
Purpose | File |
---|---|
Include | socket.h |
Interface | socket.i.h |
Tests / Examples | test/socket.cpp |
Note: This medium is only available on POSIX systems where the POSIX socket C API is available. These are C++ wrappers around the POSIX socket C API.
socket_streambuf
is a std::streambuf
specialization that reads from and writes to a client_socket
- mainly a tcp_client_socket
, but possibly a udp_socket
.
tcp_server_socket
is a TCP server socket.
It can listen and accept client connections.
tcp_client_socket
is TCP client socket.
It can connect to a server and can send and receive bytes.
Since UDP sockets are connectionless, they are symmetric - there is no client or server.
Each side can send, and receive bytes.
udp_socket
represents UDP sockets.