TCP over IP facilities are defined in the
include/picolibrary/ip/tcp.h
/source/picolibrary/ip/tcp.cc
header/source file pair.
The ::picolibrary::IP::TCP::Port
type alias is used to store a TCP port.
See the ::picolibrary::IP::Port
documentation for more information.
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.
The ::picolibrary::IP::TCP::Client_Concept
concept class defines the expected interface
of a TCP over IP client socket.
bind()
member function.connect()
member function.is_connected()
member function.remote_endpoint()
member function.local_endpoint()
member function.outstanding()
member function.transmit()
member function.available()
member function.receive()
member function.shutdown()
member function.close()
member
function.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.
The ::picolibrary::IP::TCP::Server_Concept
concept class defines the expected interface
of a TCP over IP server socket.
bind()
member function.listen()
member function.is_listening()
member function.local_endpoint()
member function.accept()
member function.close()
member
function.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.
The ::picolibrary::IP::TCP::Server_Connection_Handler_Concept
concept class defines the
expected interface of a TCP over IP server connection handler socket.
is_connected()
member function.remote_endpoint()
member function.local_endpoint()
member function.outstanding()
member function.transmit()
member function.available()
member
function.receive()
member function.shutdown()
member function.close()
member function.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.