#include <network.h>
|
int | SetCallbacks (NETFUNC_NEWCLIENT pfnNewClient, NETFUNC_DELCLIENT pfnDelClient, void *pUser) |
|
int | SetCallbacks (NETFUNC_NEWCLIENT pfnNewClient, NETFUNC_NEWCLIENT_NOAUTH pfnNewClientNoAuth, NETFUNC_CLIENTREJOIN pfnClientRejoin, NETFUNC_DELCLIENT pfnDelClient, void *pUser) |
|
bool | Open (NETADDR BindAddr, CNetBan *pNetBan, int MaxClients, int MaxClientsPerIp) |
|
int | Close () |
|
int | Recv (CNetChunk *pChunk, SECURITY_TOKEN *pResponseToken) |
|
int | Send (CNetChunk *pChunk) |
|
int | Update () |
|
int | Drop (int ClientId, const char *pReason) |
|
const NETADDR * | ClientAddr (int ClientId) const |
|
const char(* | ClientAddrString (int ClientID) const)[NETADDR_MAXSTRSIZE] |
|
bool | HasSecurityToken (int ClientId) const |
|
NETADDR | Address () const |
|
NETSOCKET | Socket () const |
|
CNetBan * | NetBan () const |
|
int | NetType () const |
|
int | MaxClients () const |
|
void | SendTokenSixup (NETADDR &Addr, SECURITY_TOKEN Token) |
|
int | SendConnlessSixup (CNetChunk *pChunk, SECURITY_TOKEN ResponseToken) |
|
void | SetMaxClientsPerIp (int Max) |
|
bool | SetTimedOut (int ClientId, int OrigId) |
|
void | SetTimeoutProtected (int ClientId) |
|
int | ResetErrorString (int ClientId) |
|
const char * | ErrorString (int ClientId) |
|
SECURITY_TOKEN | GetGlobalToken () |
|
SECURITY_TOKEN | GetToken (const NETADDR &Addr) |
|
SECURITY_TOKEN | GetVanillaToken (const NETADDR &Addr) |
|
|
void | OnTokenCtrlMsg (NETADDR &Addr, int ControlMsg, const CNetPacketConstruct &Packet) |
|
int | OnSixupCtrlMsg (NETADDR &Addr, CNetChunk *pChunk, int ControlMsg, const CNetPacketConstruct &Packet, SECURITY_TOKEN &ResponseToken, SECURITY_TOKEN Token) |
|
void | OnPreConnMsg (NETADDR &Addr, CNetPacketConstruct &Packet) |
|
void | OnConnCtrlMsg (NETADDR &Addr, int ClientId, int ControlMsg, const CNetPacketConstruct &Packet) |
|
bool | ClientExists (const NETADDR &Addr) |
|
int | GetClientSlot (const NETADDR &Addr) |
|
void | SendControl (NETADDR &Addr, int ControlMsg, const void *pExtra, int ExtraSize, SECURITY_TOKEN SecurityToken) |
|
int | TryAcceptClient (NETADDR &Addr, SECURITY_TOKEN SecurityToken, bool VanillaAuth=false, bool Sixup=false, SECURITY_TOKEN Token=0) |
|
int | NumClientsWithAddr (NETADDR Addr) |
|
bool | Connlimit (NETADDR Addr) |
|
void | SendMsgs (NETADDR &Addr, const CPacker **ppMsgs, int Num) |
|
◆ Address()
NETADDR CNetServer::Address |
( |
| ) |
const |
|
inline |
◆ ClientAddr()
const NETADDR * CNetServer::ClientAddr |
( |
int |
ClientId | ) |
const |
|
inline |
◆ ClientAddrString()
const char(* CNetServer::ClientAddrString |
( |
int |
ClientID | ) |
)[NETADDR_MAXSTRSIZE] |
|
inline |
◆ ClientExists()
bool CNetServer::ClientExists |
( |
const NETADDR & |
Addr | ) |
|
|
inlineprivate |
◆ Close()
int CNetServer::Close |
( |
| ) |
|
◆ Connlimit()
bool CNetServer::Connlimit |
( |
NETADDR |
Addr | ) |
|
|
private |
◆ Drop()
int CNetServer::Drop |
( |
int |
ClientId, |
|
|
const char * |
pReason |
|
) |
| |
◆ ErrorString()
const char * CNetServer::ErrorString |
( |
int |
ClientId | ) |
|
◆ GetClientSlot()
int CNetServer::GetClientSlot |
( |
const NETADDR & |
Addr | ) |
|
|
private |
◆ GetGlobalToken()
◆ GetToken()
◆ GetVanillaToken()
◆ HasSecurityToken()
bool CNetServer::HasSecurityToken |
( |
int |
ClientId | ) |
const |
|
inline |
◆ MaxClients()
int CNetServer::MaxClients |
( |
| ) |
const |
|
inline |
◆ NetBan()
CNetBan * CNetServer::NetBan |
( |
| ) |
const |
|
inline |
◆ NetType()
int CNetServer::NetType |
( |
| ) |
const |
|
inline |
◆ NumClientsWithAddr()
int CNetServer::NumClientsWithAddr |
( |
NETADDR |
Addr | ) |
|
|
private |
◆ OnConnCtrlMsg()
◆ OnPreConnMsg()
◆ OnSixupCtrlMsg()
◆ OnTokenCtrlMsg()
◆ Open()
bool CNetServer::Open |
( |
NETADDR |
BindAddr, |
|
|
CNetBan * |
pNetBan, |
|
|
int |
MaxClients, |
|
|
int |
MaxClientsPerIp |
|
) |
| |
◆ Recv()
◆ ResetErrorString()
int CNetServer::ResetErrorString |
( |
int |
ClientId | ) |
|
◆ Send()
◆ SendConnlessSixup()
◆ SendControl()
void CNetServer::SendControl |
( |
NETADDR & |
Addr, |
|
|
int |
ControlMsg, |
|
|
const void * |
pExtra, |
|
|
int |
ExtraSize, |
|
|
SECURITY_TOKEN |
SecurityToken |
|
) |
| |
|
private |
◆ SendMsgs()
void CNetServer::SendMsgs |
( |
NETADDR & |
Addr, |
|
|
const CPacker ** |
ppMsgs, |
|
|
int |
Num |
|
) |
| |
|
private |
◆ SendTokenSixup()
◆ SetCallbacks() [1/2]
◆ SetCallbacks() [2/2]
◆ SetMaxClientsPerIp()
void CNetServer::SetMaxClientsPerIp |
( |
int |
Max | ) |
|
◆ SetTimedOut()
bool CNetServer::SetTimedOut |
( |
int |
ClientId, |
|
|
int |
OrigId |
|
) |
| |
◆ SetTimeoutProtected()
void CNetServer::SetTimeoutProtected |
( |
int |
ClientId | ) |
|
◆ Socket()
◆ TryAcceptClient()
◆ Update()
int CNetServer::Update |
( |
| ) |
|
◆ m_Address
◆ m_aSecurityTokenSeed
unsigned char CNetServer::m_aSecurityTokenSeed[16] |
|
private |
◆ m_aSlots
◆ m_aSpamConns
◆ m_MaxClients
int CNetServer::m_MaxClients |
|
private |
◆ m_MaxClientsPerIp
int CNetServer::m_MaxClientsPerIp |
|
private |
◆ m_NumConAttempts
int CNetServer::m_NumConAttempts |
|
private |
◆ m_pfnClientRejoin
◆ m_pfnDelClient
◆ m_pfnNewClient
◆ m_pfnNewClientNoAuth
◆ m_pNetBan
◆ m_pUser
void* CNetServer::m_pUser |
|
private |
◆ m_RecvUnpacker
◆ m_Socket
◆ m_TimeNumConAttempts
int64_t CNetServer::m_TimeNumConAttempts |
|
private |
◆ m_VConnFirst
int64_t CNetServer::m_VConnFirst |
|
private |
◆ m_VConnNum
int CNetServer::m_VConnNum |
|
private |
The documentation for this class was generated from the following files: