mirror of
https://bitbucket.org/seefoe/src.git
synced 2026-08-01 02:15:47 -04:00
42 lines
1.5 KiB
C++
Executable File
42 lines
1.5 KiB
C++
Executable File
// ConnectionServerConnection.h
|
|
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
|
|
// Author: Justin Randall
|
|
|
|
#ifndef _INCLUDED_ConnectionServerConnection_H
|
|
#define _INCLUDED_ConnectionServerConnection_H
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
#include "serverUtility/ServerConnection.h"
|
|
#include <set>
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
class ChatServerAvatarOwner;
|
|
class GameNetworkMessage;
|
|
|
|
class ConnectionServerConnection : public ServerConnection
|
|
{
|
|
public:
|
|
ConnectionServerConnection(const std::string & remoteAddress, const uint16_t remotePort);
|
|
~ConnectionServerConnection();
|
|
|
|
void addAvatar (ChatServerAvatarOwner * avatar);
|
|
void onConnectionClosed ();
|
|
void onConnectionOpened ();
|
|
void onReceive (const Archive::ByteStream & bs);
|
|
void removeAvatar (ChatServerAvatarOwner * avatar);
|
|
void sendToClient (const NetworkId & clientId, const GameNetworkMessage & message);
|
|
|
|
private:
|
|
ConnectionServerConnection & operator = (const ConnectionServerConnection & rhs);
|
|
ConnectionServerConnection(const ConnectionServerConnection & source);
|
|
|
|
std::set<ChatServerAvatarOwner *> m_avatars;
|
|
|
|
}; //lint !e1712 default constructor not defined for class
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
#endif // _INCLUDED_ConnectionServerConnection_H
|