Added ConnectionServer project

This commit is contained in:
Anonymous
2014-01-17 01:42:55 -07:00
parent c76ba3f66a
commit 26b88b4533
29 changed files with 7917 additions and 0 deletions
@@ -0,0 +1,32 @@
// CentralConnection.h
// copyright 2000 Verant Interactive
// Author: Justin Randall
#ifndef _CentralConnection_H
#define _CentralConnection_H
//-----------------------------------------------------------------------
#include "serverUtility/ServerConnection.h"
//-----------------------------------------------------------------------
class CentralConnection : public ServerConnection
{
public:
CentralConnection (const std::string & address, const unsigned short port);
CentralConnection(UdpConnectionMT *, TcpClient *);
~CentralConnection();
void onConnectionClosed();
void onConnectionOpened();
void onReceive(const Archive::ByteStream & message);
private:
CentralConnection();
CentralConnection(const CentralConnection&);
CentralConnection& operator=(const CentralConnection&);
};
//-----------------------------------------------------------------------
#endif // _CentralConnection_H