Added ChatServer and soePlatform

This commit is contained in:
Anonymous
2014-01-17 03:40:51 -07:00
parent 26b88b4533
commit 4fae2dfe0f
183 changed files with 64549 additions and 0 deletions
@@ -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