Class ServerSocket

Inheritance Relationships

Base Type

Class Documentation

class ServerSocket : public c2k::AbstractSocket

Represents a server socket that listens for incoming connections.

This class inherits from AbstractSocket and provides functionality to create a server socket and handle incoming connections. It starts a listening thread to actively accept incoming connections and a callback function to handle the new client sockets.

Public Functions

ServerSocket(ServerSocket &&other) noexcept = default
ServerSocket &operator=(ServerSocket &&other) noexcept = default
~ServerSocket()
void stop()

Stop the server listening thread.