AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "AuthSocketMgr.h"
Public Member Functions | |
bool | StartNetwork (Acore::Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount=1) override |
Public Member Functions inherited from SocketMgr< AuthSession > | |
virtual | ~SocketMgr () |
virtual bool | StartNetwork (Acore::Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount) |
virtual void | StopNetwork () |
void | Wait () |
virtual void | OnSocketOpen (tcp::socket &&sock, uint32 threadIndex) |
int32 | GetNetworkThreadCount () const |
uint32 | SelectThreadWithMinConnections () const |
std::pair< tcp::socket *, uint32 > | GetSocketForAccept () |
Static Public Member Functions | |
static AuthSocketMgr & | Instance () |
Protected Member Functions | |
NetworkThread< AuthSession > * | CreateThreads () const override |
Protected Member Functions inherited from SocketMgr< AuthSession > | |
SocketMgr ()=default | |
virtual NetworkThread< AuthSession > * | CreateThreads () const=0 |
Static Protected Member Functions | |
static void | OnSocketAccept (tcp::socket &&sock, uint32 threadIndex) |
Private Types | |
typedef SocketMgr< AuthSession > | BaseSocketMgr |
Additional Inherited Members | |
Protected Attributes inherited from SocketMgr< AuthSession > | |
std::unique_ptr< AsyncAcceptor > | _acceptor |
std::unique_ptr< NetworkThread< AuthSession >[]> | _threads |
int32 | _threadCount |
|
private |
|
inlineoverrideprotectedvirtual |
Implements SocketMgr< AuthSession >.
References NetworkThread< SocketType >::EnableProxyProtocol(), and sConfigMgr.
|
inlinestatic |
Referenced by OnSocketAccept().
|
inlinestaticprotected |
References Instance(), and SocketMgr< SocketType >::OnSocketOpen().
Referenced by StartNetwork().
|
inlineoverridevirtual |
Reimplemented from SocketMgr< AuthSession >.
References SocketMgr< AuthSession >::_acceptor, OnSocketAccept(), and SocketMgr< AuthSession >::StartNetwork().