VOX
A little voxel engine
|
a class that represents a server socket. you can accept connections from clients. More...
#include <ServerSocket.hpp>
Public Member Functions | |
ServerSocket (int port) | |
virtual | ~ServerSocket () |
ServerSocket (const ServerSocket &other)=delete | |
ServerSocket & | operator= (const ServerSocket &other)=delete |
ServerSocket (ServerSocket &&other) | |
ServerSocket & | operator= (ServerSocket &&other) |
std::shared_ptr< ConnectionSocket > | accept () |
Public Member Functions inherited from Socket | |
virtual | ~Socket () |
int | getFd () const |
Socket (const Socket &other)=delete | |
Socket & | operator= (const Socket &other)=delete |
Socket (Socket &&other) | |
Socket & | operator= (Socket &&other) |
bool | operator== (const Socket &other) const |
bool | operator== (const int &fd) const |
Static Public Attributes | |
static constexpr int | MAX_BACKLOG = 10 |
Additional Inherited Members | |
Protected Member Functions inherited from Socket | |
Socket () | |
void | close () |
Protected Attributes inherited from Socket | |
int | m_sockfd = -1 |
a class that represents a server socket. you can accept connections from clients.
ServerSocket::ServerSocket | ( | int | port | ) |
|
virtual |
|
delete |
ServerSocket::ServerSocket | ( | ServerSocket && | other | ) |
std::shared_ptr< ConnectionSocket > ServerSocket::accept | ( | ) |
|
delete |
ServerSocket & ServerSocket::operator= | ( | ServerSocket && | other | ) |
|
staticconstexpr |