mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-15 00:08:07 -04:00
37 lines
1.0 KiB
C++
Executable File
37 lines
1.0 KiB
C++
Executable File
// GameServerConnection.h
|
|
// Copyright 2004, Sony Online Entertainment Inc., all rights reserved.
|
|
|
|
#ifndef INCLUDED_GameServerConnection_H
|
|
#define INCLUDED_GameServerConnection_H
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
#include "serverUtility/ServerConnection.h"
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
class GameNetworkMessage;
|
|
|
|
class GameServerConnection : public ServerConnection
|
|
{
|
|
public:
|
|
|
|
GameServerConnection(UdpConnectionMT * u, TcpClient * t);
|
|
~GameServerConnection();
|
|
|
|
void onConnectionClosed();
|
|
void onConnectionOpened();
|
|
void onReceive(const Archive::ByteStream & bs);
|
|
|
|
static void broadcast(GameNetworkMessage const &message);
|
|
|
|
private:
|
|
|
|
GameServerConnection & operator = (const GameServerConnection & rhs);
|
|
GameServerConnection(const GameServerConnection & source);
|
|
}; //lint !e1712 default constructor not defined for class
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
#endif // INCLUDED_GameServerConnection_H
|