picolibrary

TCP Over IP Facilities

TCP over IP facilities are defined in the include/picolibrary/ip/tcp.h/source/picolibrary/ip/tcp.cc header/source file pair.

Table of Contents

  1. Port
  2. Endpoint
  3. Client Socket
  4. Server Socket
  5. Server Connection Handler Socket

Port

The ::picolibrary::IP::TCP::Port type alias is used to store a TCP port. See the ::picolibrary::IP::Port documentation for more information.

Endpoint

The ::picolibrary::IP::TCP::Endpoint type alias is used to store a TCP endpoint (IP address, TCP port pair). See the ::picolibrary::IP::Endpoint documentation for more information.

Client Socket

The ::picolibrary::IP::TCP::Client_Concept concept class defines the expected interface of a TCP over IP client socket.

The ::picolibrary::Testing::Automated::IP::TCP::Mock_Client mock TCP over IP client socket class is available if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The mock is defined in the include/picolibrary/testing/automated/ip/tcp.h/source/picolibrary/testing/automated/ip/tcp.cc header/source file pair.

The ::picolibrary::Testing::Interactive::IP::TCP::echo_client() interactive test helper is available if the PICOLIBRARY_ENABLE_INTERACTIVE_TESTING project configuration option is ON. The interactive test helper is defined in the include/picolibrary/testing/interactive/ip/tcp.h/source/picolibrary/testing/interactive/ip/tcp.cc header/source file pair.

Server Socket

The ::picolibrary::IP::TCP::Server_Concept concept class defines the expected interface of a TCP over IP server socket.

The ::picolibrary::Testing::Automated::IP::TCP::Mock_Server mock TCP over IP server socket class is available if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The mock is defined in the include/picolibrary/testing/automated/ip/tcp.h/source/picolibrary/testing/automated/ip/tcp.cc header/source file pair.

The ::picolibrary::Testing::Interactive::IP::TCP::echo_server() interactive test helper is available if the PICOLIBRARY_ENABLE_INTERACTIVE_TESTING project configuration option is ON. The interactive test helper is defined in the include/picolibrary/testing/interactive/ip/tcp.h/source/picolibrary/testing/interactive/ip/tcp.cc header/source file pair.

Server Connection Handler Socket

The ::picolibrary::IP::TCP::Server_Connection_Handler_Concept concept class defines the expected interface of a TCP over IP server connection handler socket.

The ::picolibrary::Testing::Automated::IP::TCP::Mock_Server_connection_Handler mock TCP over IP server connection handler socket class is available if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The mock is defined in the include/picolibrary/testing/automated/ip/tcp.h/source/picolibrary/testing/automated/ip/tcp.cc header/source file pair.