7#include <netinet/tcp.h>
28 std::shared_ptr<ConnectionSocket>
accept();
a class that represents a server socket. you can accept connections from clients.
Definition: ServerSocket.hpp:16
virtual ~ServerSocket()
Definition: ServerSocket.cpp:48
static constexpr int MAX_BACKLOG
Definition: ServerSocket.hpp:18
ServerSocket(const ServerSocket &other)=delete
ServerSocket & operator=(const ServerSocket &other)=delete
std::shared_ptr< ConnectionSocket > accept()
Definition: ServerSocket.cpp:63
a RAII wrapper for a socket.
Definition: Socket.hpp:17