News SF.net Project Frequently Asked Questions Documentation Downloads Mailing Lists How to Contribute

SourceForge.net Logo

Changing the way games are made and played.

Zap::MasterServerConnection class Reference

Zap::MasterServerConnection Class Reference

#include <masterConnection.h>

Inheritance diagram for Zap::MasterServerConnection:

MasterServerInterface TNL::EventConnection TNL::NetConnection TNL::Object

Public Member Functions

 MasterServerConnection (bool isGameServer=false)
void startGameTypesQuery ()
void cancelArrangedConnectionAttempt ()
void requestArrangedConnection (const Address &remoteAddress)
 TNL_DECLARE_RPC_OVERRIDE (m2cQueryGameTypesResponse,(U32 queryId, Vector< StringTableEntry > gameTypes, Vector< StringTableEntry > missionTypes))
 TNL_DECLARE_RPC_OVERRIDE (m2cQueryServersResponse,(U32 queryId, Vector< IPAddress > ipList))
 TNL_DECLARE_RPC_OVERRIDE (m2cClientRequestedArrangedConnection,(U32 requestId, Vector< IPAddress > possibleAddresses, ByteBufferPtr connectionParameters))
 TNL_DECLARE_RPC_OVERRIDE (m2cArrangedConnectionAccepted,(U32 requestId, Vector< IPAddress > possibleAddresses, ByteBufferPtr connectionData))
 TNL_DECLARE_RPC_OVERRIDE (m2cArrangedConnectionRejected,(U32 requestId, ByteBufferPtr rejectData))
 TNL_DECLARE_RPC_OVERRIDE (m2cSetMOTD,(StringPtr motdString))
void writeConnectRequest (BitStream *bstream)
 Writes the NetEvent class count into the stream, so that the remote host can negotiate a class count for the connection.

void onConnectionEstablished ()
 Called when the connection is successfully established with the remote host.

 TNL_DECLARE_NETCONNECTION (MasterServerConnection)

Private Types

typedef MasterServerInterface Parent

Private Attributes

U32 mCurrentQueryId
bool mIsGameServer

Member Typedef Documentation

typedef MasterServerInterface Zap::MasterServerConnection::Parent [private]
 

Reimplemented from TNL::EventConnection.


Constructor & Destructor Documentation

Zap::MasterServerConnection::MasterServerConnection bool  isGameServer = false  )  [inline]
 


Member Function Documentation

void Zap::MasterServerConnection::startGameTypesQuery  ) 
 

void Zap::MasterServerConnection::cancelArrangedConnectionAttempt  )  [inline]
 

void Zap::MasterServerConnection::requestArrangedConnection const Address remoteAddress  ) 
 

Zap::MasterServerConnection::TNL_DECLARE_RPC_OVERRIDE m2cQueryGameTypesResponse  ,
(U32 queryId, Vector< StringTableEntry > gameTypes, Vector< StringTableEntry > missionTypes) 
 

Zap::MasterServerConnection::TNL_DECLARE_RPC_OVERRIDE m2cQueryServersResponse  ,
(U32 queryId, Vector< IPAddress > ipList) 
 

Zap::MasterServerConnection::TNL_DECLARE_RPC_OVERRIDE m2cClientRequestedArrangedConnection  ,
(U32 requestId, Vector< IPAddress > possibleAddresses, ByteBufferPtr connectionParameters) 
 

Zap::MasterServerConnection::TNL_DECLARE_RPC_OVERRIDE m2cArrangedConnectionAccepted  ,
(U32 requestId, Vector< IPAddress > possibleAddresses, ByteBufferPtr connectionData) 
 

Zap::MasterServerConnection::TNL_DECLARE_RPC_OVERRIDE m2cArrangedConnectionRejected  ,
(U32 requestId, ByteBufferPtr rejectData) 
 

Zap::MasterServerConnection::TNL_DECLARE_RPC_OVERRIDE m2cSetMOTD  ,
(StringPtr motdString) 
 

void Zap::MasterServerConnection::writeConnectRequest BitStream *  bstream  )  [virtual]
 

Writes the NetEvent class count into the stream, so that the remote host can negotiate a class count for the connection.

Reimplemented from TNL::EventConnection.

void Zap::MasterServerConnection::onConnectionEstablished  )  [virtual]
 

Called when the connection is successfully established with the remote host.

Reimplemented from TNL::NetConnection.

Zap::MasterServerConnection::TNL_DECLARE_NETCONNECTION MasterServerConnection   ) 
 


Field Documentation

U32 Zap::MasterServerConnection::mCurrentQueryId [private]
 

bool Zap::MasterServerConnection::mIsGameServer [private]