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

Functions

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

Function Documentation

◆ main()

int main ( )

◆ test_error_handling()

void test_error_handling ( )

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

◆ test_tcp()

void test_tcp ( Port port)

Test TCP server functionality: accept, receive, send, close.

◆ test_udp()

void test_udp ( Port port)

Test UDP server functionality: receive, send, 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 server functionality (POSIX only).