otsdaq
v2_04_02
|
Public Member Functions | |
TCPServer (int serverPort, unsigned int maxNumberOfClients=-1) | |
virtual std::string | interpretMessage (const std::string &buffer)=0 |
![]() | |
TCPServerBase (int serverPort, unsigned int maxNumberOfClients) | |
void | startAccept (void) |
void | broadcastPacket (const std::string &message) |
void | broadcast (const std::string &message) |
void | broadcast (const std::vector< char > &message) |
![]() | |
TCPSocket (int socketId=invalidSocketId) | |
TCPSocket (TCPSocket &&move) | |
TCPSocket & | operator= (TCPSocket &&move) |
void | swap (TCPSocket &other) |
TCPSocket (TCPSocket const &)=delete | |
TCPSocket & | operator= (TCPSocket const &)=delete |
int | getSocketId (void) const |
void | close (void) |
void | sendClose (void) |
Additional Inherited Members | |
![]() | |
void | closeClientSocket (int socket) |
template<class T > | |
T * | acceptClient (bool blocking=true) |
![]() | |
std::promise< bool > | fAcceptPromise |
std::unordered_map< int, TCPSocket * > | fConnectedClients |
const int | E_SHUTDOWN = 0 |
![]() | |
static constexpr int | invalidSocketId = -1 |
Definition at line 11 of file TCPServer.h.