mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-17 07:03:02 -04:00
Added serverDatabase library
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
// GameServerConnection.h
|
||||
// copyright 2001 Verant Interactive
|
||||
// Author: Justin Randall
|
||||
|
||||
#ifndef _GameServerConnection_H
|
||||
#define _GameServerConnection_H
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#include "serverUtility/ServerConnection.h"
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
class GameServerConnection : public ServerConnection
|
||||
{
|
||||
public:
|
||||
GameServerConnection (const std::string & remoteAddress, const unsigned short remotePort);
|
||||
explicit GameServerConnection (UdpConnectionMT *, TcpClient *);
|
||||
virtual ~GameServerConnection ();
|
||||
|
||||
void onConnectionClosed ();
|
||||
void onConnectionOpened ();
|
||||
void onReceive (const Archive::ByteStream & message);
|
||||
|
||||
void queueCompletedChunk (int nodeX, int nodeZ);
|
||||
void sendChunkCompleteMessage();
|
||||
void clearChunkCompleteQueue();
|
||||
|
||||
private:
|
||||
typedef stdvector<std::pair<int, int> >::fwd ChunkCompleteQueueType;
|
||||
ChunkCompleteQueueType * const m_chunkCompleteQueue;
|
||||
|
||||
private:
|
||||
GameServerConnection(GameServerConnection&);
|
||||
GameServerConnection& operator=(GameServerConnection&);
|
||||
};
|
||||
|
||||
//-----------------------------------------------------------------------
|
||||
|
||||
#endif // _GameServerConnection_H
|
||||
|
||||
Reference in New Issue
Block a user