EvEmu
0.8.4
11 September 2021
|
EVE derivation of TCP server. More...
#include "EVETCPServer.h"
Protected Member Functions | |
virtual void | CreateNewConnection (Socket *sock, uint32 rIP, uint16 rPort) |
Processes new connection. More... | |
![]() | |
void | AddConnection (EVETCPConnection *con) |
Adds connection to the queue. More... | |
![]() | |
void | StartLoop () |
Starts worker thread. More... | |
void | WaitLoop () |
Waits for worker thread to terminate. More... | |
virtual bool | Process () |
Does periodical stuff to keep the server alive. More... | |
void | ListenNewConnections () |
Accepts all new connections. More... | |
void | TCPServerLoop () |
Loop for worker threads. More... | |
Additional Inherited Members | |
![]() | |
~TCPServer () | |
Deletes all stored connections. More... | |
EVETCPConnection * | PopConnection () |
Pops connection from queue. More... | |
![]() | |
BaseTCPServer () | |
Creates empty TCP server. More... | |
virtual | ~BaseTCPServer () |
Cleans server up. More... | |
uint16 | GetPort () const |
bool | IsOpen () const |
bool | Open (uint16 port, char *errbuf=0) |
Start listening on specified port. More... | |
void | Close () |
Stops started listening. More... | |
![]() | |
static void * | TCPServerLoop (void *arg) |
Loop for worker threads. More... | |
![]() | |
Mutex | mMQueue |
std::queue< EVETCPConnection * > | mQueue |
![]() | |
Mutex | mMSock |
Socket * | mSock |
uint16 | mPort |
Mutex | mMLoopRunning |
EVE derivation of TCP server.
Definition at line 36 of file EVETCPServer.h.
|
inlineprotectedvirtual |
Processes new connection.
This function must be overloaded by children to process new connections. Called every time a new connection is accepted.
Implements BaseTCPServer.
Definition at line 39 of file EVETCPServer.h.
References TCPServer< EVETCPConnection >::AddConnection().