#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 | SetTimedOut (int ClientId, int OrigId) |
| |
| void | SetTimeoutProtected (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()
◆ ClientAddrString()
◆ ClientExists()
◆ Close()
| void CNetServer::Close |
( |
| ) |
|
◆ Connlimit()
◆ Drop()
◆ ErrorString()
◆ GetClientSlot()
◆ 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()
◆ Recv()
◆ ResetErrorString()
| void CNetServer::ResetErrorString |
( |
int |
ClientId | ) |
|
◆ Send()
◆ SendControl()
◆ SendMsgs()
◆ 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()
| void CNetServer::Update |
( |
| ) |
|
◆ m_Address
◆ m_aSecurityTokenSeed
◆ m_aSlots
◆ m_aSpamConns
◆ m_MaxClients
| int CNetServer::m_MaxClients |
|
private |
◆ m_MaxClientsPerIp
| int CNetServer::m_MaxClientsPerIp |
|
private |
◆ m_pfnClientRejoin
◆ m_pfnDelClient
◆ m_pfnNewClient
◆ m_pfnNewClientNoAuth
◆ m_pNetBan
◆ m_pUser
| void* CNetServer::m_pUser |
|
private |
◆ m_RecvUnpacker
◆ m_Socket
◆ m_VConnFirst
◆ m_VConnNum
| int CNetServer::m_VConnNum |
|
private |
The documentation for this class was generated from the following files: