#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) |
| void | Close () |
| int | Recv (CNetChunk *pChunk, SECURITY_TOKEN *pResponseToken) |
| int | Send (CNetChunk *pChunk) |
| void | Update () |
| void | Drop (int ClientId, const char *pReason) |
| const NETADDR * | ClientAddr (int ClientId) const |
| const std::array< char, NETADDR_MAXSTRSIZE > & | ClientAddrString (int ClientId, bool IncludePort) const |
| 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) |
| void | SetMaxClientsPerIp (int Max) |
| bool | HasErrored (int ClientId) |
| void | ResumeOldConnection (int ClientId, int OrigId) |
| void | IgnoreTimeouts (int ClientId) |
| void | 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 std::array< char, NETADDR_MAXSTRSIZE > & CNetServer::ClientAddrString |
( |
int | ClientId, |
|
|
bool | IncludePort ) const |
|
inline |
◆ ClientExists()
| bool CNetServer::ClientExists |
( |
const NETADDR & | Addr | ) |
|
|
inlineprivate |
◆ Close()
| void CNetServer::Close |
( |
| ) |
|
◆ Connlimit()
| bool CNetServer::Connlimit |
( |
NETADDR | Addr | ) |
|
|
private |
◆ Drop()
| void 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()
◆ HasErrored()
| bool CNetServer::HasErrored |
( |
int | ClientId | ) |
|
◆ HasSecurityToken()
| bool CNetServer::HasSecurityToken |
( |
int | ClientId | ) |
const |
|
inline |
◆ IgnoreTimeouts()
| void CNetServer::IgnoreTimeouts |
( |
int | ClientId | ) |
|
◆ 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()
| void CNetServer::ResetErrorString |
( |
int | ClientId | ) |
|
◆ ResumeOldConnection()
| void CNetServer::ResumeOldConnection |
( |
int | ClientId, |
|
|
int | OrigId ) |
◆ Send()
◆ 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 | ) |
|
◆ Socket()
◆ TryAcceptClient()
◆ Update()
| void CNetServer::Update |
( |
| ) |
|
◆ m_Address
◆ m_aSecurityTokenSeed
| unsigned char CNetServer::m_aSecurityTokenSeed[16] |
|
private |
◆ m_aSlots
◆ m_aSpamConns
◆ m_MaxClients
◆ m_MaxClientsPerIp
| int CNetServer::m_MaxClientsPerIp |
|
private |
◆ m_PacketChunkUnpacker
◆ m_pfnClientRejoin
◆ m_pfnDelClient
◆ m_pfnNewClient
◆ m_pfnNewClientNoAuth
◆ m_pNetBan
◆ m_pUser
| void* CNetServer::m_pUser |
|
private |
◆ m_RecvBuffer
◆ m_Socket
◆ 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: