TrinityCore
|
#include <SessionManager.h>
Public Member Functions | |
bool | StartNetwork (Trinity::Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount=1) override |
Public Member Functions inherited from SocketMgr< Session > | |
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 () |
Static Public Member Functions | |
static SessionManager & | Instance () |
Protected Member Functions | |
NetworkThread< Session > * | CreateThreads () const override |
Protected Member Functions inherited from SocketMgr< Session > | |
SocketMgr () | |
virtual NetworkThread< Session > * | CreateThreads () const=0 |
Private Types | |
typedef SocketMgr< Session > | BaseSocketMgr |
Static Private Member Functions | |
static void | OnSocketAccept (boost::asio::ip::tcp::socket &&sock, uint32 threadIndex) |
Additional Inherited Members | |
Protected Attributes inherited from SocketMgr< Session > | |
AsyncAcceptor * | _acceptor |
NetworkThread< Session > * | _threads |
int32 | _threadCount |
Definition at line 26 of file SessionManager.h.
|
private |
Definition at line 28 of file SessionManager.h.
|
overrideprotectedvirtual |
Implements SocketMgr< Session >.
Definition at line 31 of file SessionManager.cpp.
|
static |
Definition at line 41 of file SessionManager.cpp.
|
staticprivate |
|
overridevirtual |
Reimplemented from SocketMgr< Session >.
Definition at line 22 of file SessionManager.cpp.