18#ifndef AuthSocketMgr_h__
19#define AuthSocketMgr_h__
56#define sAuthSocketMgr AuthSocketMgr::Instance()
void AsyncAcceptWithCallback()
bool StartNetwork(Trinity::Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount=1) override
SocketMgr< AuthSession > BaseSocketMgr
NetworkThread< AuthSession > * CreateThreads() const override
static AuthSocketMgr & Instance()
static void OnSocketAccept(tcp::socket &&sock, uint32 threadIndex)
AsyncAcceptor * _acceptor
virtual bool StartNetwork(Trinity::Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount)
virtual void OnSocketOpen(tcp::socket &&sock, uint32 threadIndex)