|
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... | |
Protected Member Functions inherited from TCPServer< EVETCPConnection > | |
| void | AddConnection (EVETCPConnection *con) |
| Adds connection to the queue. More... | |
Protected Member Functions inherited from BaseTCPServer | |
| 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 | |
Public Member Functions inherited from TCPServer< EVETCPConnection > | |
| ~TCPServer () | |
| Deletes all stored connections. More... | |
| EVETCPConnection * | PopConnection () |
| Pops connection from queue. More... | |
Public Member Functions inherited from BaseTCPServer | |
| 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 Protected Member Functions inherited from BaseTCPServer | |
| static void * | TCPServerLoop (void *arg) |
| Loop for worker threads. More... | |
Protected Attributes inherited from TCPServer< EVETCPConnection > | |
| Mutex | mMQueue |
| std::queue< EVETCPConnection * > | mQueue |
Protected Attributes inherited from BaseTCPServer | |
| 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().
