mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-09-29 14:12:54 -04:00
Added ChatServer and soePlatform
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
// 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 unsigned short 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
|
||||
Reference in New Issue
Block a user