#include <Gateway.h>
Public Member Functions | |
CGateway (CONNECTION_TYPES hostType) | |
CGateway. | |
void | Process () |
Process. | |
void | AddIncomingConn (CNetworkPlayer *pPlayer) |
AddIncomingConn. | |
void | FreePlayer (PLAYER_TYPES iType, int32 iQuant=1) |
FreePlayer. | |
bool | AddPlayer (PLAYER_TYPES iType) |
FreePlayer. | |
bool | SetConnectionLimit (CONNECTION_TYPES iConnectionType, int32 iCount) |
SetConnectionLimit. | |
int32 | GetConnectionLimit (CONNECTION_TYPES iConnectionType) const |
GetConnectionLimit. | |
int32 | GetConnectionCount (CONNECTION_TYPES iConnectionType) const |
GetConnectionCount. | |
bool | SetPlayerLimit (PLAYER_TYPES iPlayerType, int32 iCount) |
SetPlayerLimit. | |
int32 | GetPlayerLimit (PLAYER_TYPES iPlayerType) const |
GetPlayerLimit. | |
int32 | GetPlayerCount (PLAYER_TYPES iPlayerType) const |
GetPlayerCount. | |
void | AddOutgoingConn (CNetworkPlayer *pPlayer, CONNECTION_TYPES iReqType) |
AddOutgoingConn. | |
bool | GetReadyPlayer (GATEWAY_CONN_INFO &) |
GetReadyPlayer. | |
Protected Member Functions | |
void | TryAuthenticate (GATEWAY_CONN_INFO &, CMessage *pMsg) |
TryAuthenticate. | |
void | PostRequest (CMailbox *pMbx, CONNECTION_REQUEST_BUFFER *) |
PostRequest. | |
void | PostRejection (CMailbox *pMbx, int32 iReason, const char *sReason) |
PostRejection. | |
void | PostAcceptance (CMailbox *pMbx) |
PostAcceptance. | |
bool | ValidPlayerType (int32 iType) const |
ValidType. |
Description: This class manages new connections. All new connections are kept in "limbo" until their identity is discovered. Once the connection type is established, the connection is wrapped with appropriate player and is made available for retrieval.
Limitations: None
|
CGateway. Description:
|
|
AddIncomingConn. Description:
|
|
AddOutgoingConn. Description: This function can be used by CLIENTs attempting to connect to a host that is guarded by a gateway authenticator.
|
|
FreePlayer. Description:
|
|
FreePlayer. Description:
|
|
GetConnectionCount. Description:
|
|
GetConnectionLimit. Description:
|
|
GetPlayerCount. Description:
|
|
GetPlayerLimit. Description:
|
|
GetReadyPlayer. Description:
|
|
PostAcceptance. Description:
|
|
PostRejection. Description:
|
|
PostRequest. Description:
|
|
Process. Description:
|
|
SetConnectionLimit. Description:
|
|
SetPlayerLimit. Description:
|
|
TryAuthenticate. Description:
|
|
ValidType. Description: This function validates a provided connection type. The valid connection types are defined in an enumeration in the caffeine.h header file.
|