mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
18 lines
480 B
C++
18 lines
480 B
C++
#ifndef TCPBASICSERVER_H_
|
|
#define TCPBASICSERVER_H_
|
|
|
|
#include "TCPServer.h"
|
|
#include "TCPConnection.h"
|
|
|
|
class TCPBasicServer : public TCPServer<TCPConnection> {
|
|
public:
|
|
inline TCPBasicServer(uint16 iPort = 0) : TCPServer<TCPConnection>(iPort) { }
|
|
inline virtual void CreateNewConnection(uint32 ID, SOCKET in_socket, uint32 irIP, uint16 irPort) {
|
|
TCPConnection *conn = new TCPConnection(ID, in_socket, irIP, irPort);
|
|
AddConnection(conn);
|
|
}
|
|
};
|
|
|
|
#endif /*TCPBASICSERVER_H_*/
|
|
|