18 #ifndef SessionManager_h__
19 #define SessionManager_h__
33 bool StartNetwork(boost::asio::io_service& service, std::string
const& bindIp,
uint16 port,
int threadCount = 1)
override;
43 #define sSessionMgr Battlenet::SessionManager::Instance()
45 #endif // SessionManager_h__
SocketMgr< Session > BaseSocketMgr
Definition: SessionManager.h:28
Definition: method_options.pb.h:28
static SessionManager & Instance()
Definition: SessionManager.cpp:40
bool StartNetwork(boost::asio::io_service &service, std::string const &bindIp, uint16 port, int threadCount=1) override
Definition: SessionManager.cpp:20
Definition: SessionManager.h:26
static void OnSocketAccept(tcp::socket &&sock, uint32 threadIndex)
Definition: SessionManager.cpp:35
Definition: SocketMgr.h:30
NetworkThread< Session > * CreateThreads() const override
Definition: SessionManager.cpp:30
uint32_t uint32
Definition: Define.h:150
uint16_t uint16
Definition: Define.h:151