TrinityCore
|
#include <SocketMgr.h>
Public Member Functions | |
virtual | ~SocketMgr () |
virtual bool | StartNetwork (Trinity::Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount) |
virtual void | StopNetwork () |
void | Wait () |
virtual void | OnSocketOpen (boost::asio::ip::tcp::socket &&sock, uint32 threadIndex) |
int32 | GetNetworkThreadCount () const |
uint32 | SelectThreadWithMinConnections () const |
std::pair< boost::asio::ip::tcp::socket *, uint32 > | GetSocketForAccept () |
Protected Member Functions | |
SocketMgr () | |
virtual NetworkThread< SocketType > * | CreateThreads () const =0 |
Protected Attributes | |
AsyncAcceptor * | _acceptor |
NetworkThread< SocketType > * | _threads |
int32 | _threadCount |
Definition at line 28 of file SocketMgr.h.
Definition at line 31 of file SocketMgr.h.
|
inlineprotected |
Definition at line 131 of file SocketMgr.h.
|
protectedpure virtual |
Implemented in Battlenet::SessionManager, WorldSocketMgr, Trinity::Net::Http::HttpService< SessionImpl >, and Trinity::Net::Http::HttpService< LoginHttpSession >.
Definition at line 111 of file SocketMgr.h.
|
inline |
Definition at line 124 of file SocketMgr.h.
|
inlinevirtual |
Reimplemented in WorldSocketMgr.
Definition at line 96 of file SocketMgr.h.
|
inlinevirtual |
Reimplemented in WorldSocketMgr, and Battlenet::SessionManager.
Definition at line 36 of file SocketMgr.h.
|
inlinevirtual |
Reimplemented in WorldSocketMgr, Trinity::Net::Http::HttpService< SessionImpl >, and Trinity::Net::Http::HttpService< LoginHttpSession >.
Definition at line 72 of file SocketMgr.h.
|
inline |
Definition at line 89 of file SocketMgr.h.
|
protected |
Definition at line 137 of file SocketMgr.h.
Definition at line 139 of file SocketMgr.h.
|
protected |
Definition at line 138 of file SocketMgr.h.