Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

network
Class CNetServerSession

CSocketBase
   |
   +--CStreamSocket, IMessagePipeEnd
         |
         +--CMessageSocket
               |
               +--CNetSession, CJSObject
                     |
                     +--CNetServerSession

   in ServerSession.h
   in ServerSession.cpp

class CNetServerSession
extends CJSObject, CNetSession


Field Summary
 static MessageHandler AuthenticateHandler
          
 static MessageHandler BaseHandler
          
 static MessageHandler ChatHandler
          
 static MessageHandler HandshakeHandler
          
 static MessageHandler InGameHandler
          
private int m_ID
          
private bool m_IsObserver
          
private CPlayer* m_pPlayer
          
private CPlayerSlot* m_pPlayerSlot
          
private CNetServer* m_pServer
          
 static MessageHandler ObserverHandler
          
 static MessageHandler PreGameHandler
          
   
Fields inherited from class CJSObject
m_NativeProperties, m_NonsharedProperties, m_ScriptProperties, m_EngineOwned, JSI_class
   
Fields inherited from class CNetSession
m_pMessageHandler, m_Name
 
Constructor Summary
CNetServerSession( CNetServer* pServer, CSocketInternal* pInt, MessageHandler* pMsgHandler = HandshakeHandler )
          
virtual ~CNetServerSession()
          
 
Method Summary
 bool AuthenticateHandler( CNetMessage* pMsg, CNetSession* pNetSession )
          
 bool BaseHandler( CNetMessage* pMsg, CNetSession* pNetSession )
          
 bool ChatHandler( CNetMessage* pMsg, CNetSession* pNetSession )
          
 inline int GetID()
          
 inline CPlayer* GetPlayer()
          
 inline CPlayerSlot* GetPlayerSlot()
          
 bool HandshakeHandler( CNetMessage* pMsg, CNetSession* pNetSession )
          
 bool InGameHandler( CNetMessage* pMsg, CNetSession* pNetSession )
          
 inline bool IsObserver()
          
private bool JSI_Close( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) )
          
 bool ObserverHandler( CNetMessage* pMsg, CNetSession* pNetSession )
          
 bool PreGameHandler( CNetMessage* pMsg, CNetSession* pNetSession )
          
private static void ScriptingInit()
          
protected inline void SetID( int id )
          
protected inline void SetPlayer( CPlayer* pPlayer )
          
protected inline void SetPlayerSlot( CPlayerSlot* pPlayerSlot )
          
 void StartGame()
          
   
Methods inherited from class CJSObject
ScriptingInit, ScriptingShutdown, GetProperty, SetProperty, HasProperty, AddProperty, AddProperty, AddProperty, AddMethod, AddProperty, AddLocalProperty, GetScript, CreateScriptObject, ReleaseScriptObject, Shutdown
   
Methods inherited from class CNetSession
HandleMessage, GetName
   
Methods inherited from class IJSObject
HasProperty, GetProperty, AddProperty, AddProperty
   
Methods inherited from class CMessageSocket
Push, TryPop, WriteComplete, ReadComplete, OnMessage, ConnectComplete, OnClose, BeginConnect
   
Methods inherited from class CStreamSocket
BeginConnect, Read, Write, OnClose, ConnectComplete, ReadComplete, WriteComplete, OnWrite, OnRead, SetSocketOptions, Lock, Unlock
   
Methods inherited from class IMessagePipeEnd
Push, TryPop
   
Methods inherited from class CSocketBase
Shutdown, Initialize, Close, Destroy, SetNonBlocking, SetTcpNoDelay, Read, Write, Connect, Bind, PreAccept, Accept, Reject, GetOpMask, SetOpMask, GetProtocol, IsNonBlocking, GetErrorState, GetState, GetRemoteAddress, OnRead, OnWrite, OnClose
 

Field Detail

AuthenticateHandler

public static MessageHandler AuthenticateHandler;

BaseHandler

public static MessageHandler BaseHandler;

ChatHandler

public static MessageHandler ChatHandler;

HandshakeHandler

public static MessageHandler HandshakeHandler;

InGameHandler

public static MessageHandler InGameHandler;

m_ID

private int m_ID;

m_IsObserver

private bool m_IsObserver;

m_pPlayer

private CPlayer* m_pPlayer;

m_pPlayerSlot

private CPlayerSlot* m_pPlayerSlot;

m_pServer

private CNetServer* m_pServer;

ObserverHandler

public static MessageHandler ObserverHandler;

PreGameHandler

public static MessageHandler PreGameHandler;


Constructor Detail

CNetServerSession

public CNetServerSession( CNetServer* pServer, CSocketInternal* pInt, MessageHandler* pMsgHandler = HandshakeHandler );

~CNetServerSession

public virtual ~CNetServerSession();


Method Detail

AuthenticateHandler

 bool AuthenticateHandler( CNetMessage* pMsg, CNetSession* pNetSession );

BaseHandler

 bool BaseHandler( CNetMessage* pMsg, CNetSession* pNetSession );

ChatHandler

 bool ChatHandler( CNetMessage* pMsg, CNetSession* pNetSession );

GetID

public inline int GetID();

GetPlayer

public inline CPlayer* GetPlayer();

GetPlayerSlot

public inline CPlayerSlot* GetPlayerSlot();

HandshakeHandler

 bool HandshakeHandler( CNetMessage* pMsg, CNetSession* pNetSession );

InGameHandler

 bool InGameHandler( CNetMessage* pMsg, CNetSession* pNetSession );

IsObserver

public inline bool IsObserver();

JSI_Close

private bool JSI_Close( JSContext* UNUSED( cx ), uintN UNUSED( argc ), jsval* UNUSED( argv ) );

ObserverHandler

 bool ObserverHandler( CNetMessage* pMsg, CNetSession* pNetSession );

PreGameHandler

 bool PreGameHandler( CNetMessage* pMsg, CNetSession* pNetSession );

ScriptingInit

private static void ScriptingInit();

SetID

protected inline void SetID( int id );

SetPlayer

protected inline void SetPlayer( CPlayer* pPlayer );

SetPlayerSlot

protected inline void SetPlayerSlot( CPlayerSlot* pPlayerSlot );

StartGame

public void StartGame();

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD