jsocketpp 1.0
A cross-platform C++20 socket library.
Loading...
Searching...
No Matches
client.cpp File Reference

Functions

void test_tcp (const std::string &ip, Port port)
void test_udp (const std::string &ip, Port port)
void test_unix (const std::string &path)
void test_error_handling ()
 Test error handling by attempting to connect to an invalid address.
void test_tcp (const string &ip, const Port port)
 Test TCP client functionality: connect, send, receive, close.
void test_udp (const string &ip, Port port)
 Test UDP client functionality: send, receive, close.
void test_unix (const string &path)
 Test Unix domain socket client functionality (POSIX only).
int main ()

Function Documentation

◆ main()

int main ( )

◆ test_error_handling()

void test_error_handling ( )

Test error handling by attempting to connect to an invalid address.

Test error handling by attempting to bind to an invalid port.

◆ test_tcp() [1/2]

void test_tcp ( const std::string & ip,
Port port )

◆ test_tcp() [2/2]

void test_tcp ( const string & ip,
const Port port )

Test TCP client functionality: connect, send, receive, close.

◆ test_udp() [1/2]

void test_udp ( const std::string & ip,
Port port )

◆ test_udp() [2/2]

void test_udp ( const string & ip,
Port port )

Test UDP client functionality: send, receive, close.

◆ test_unix() [1/2]

void test_unix ( const std::string & path)

◆ test_unix() [2/2]

void test_unix ( const string & path)

Test Unix domain socket client functionality (POSIX only).