#include <SessionManager.h>
42 static SessionManager instance;
void Battlenet::SessionManager::OnSocketAccept |
( |
tcp::socket && |
sock, |
|
|
uint32 |
threadIndex |
|
) |
| |
|
staticprivate |
37 sSessionMgr.OnSocketOpen(std::forward<tcp::socket>(sock), threadIndex);
#define sSessionMgr
Definition: SessionManager.h:43
bool Battlenet::SessionManager::StartNetwork |
( |
boost::asio::io_service & |
service, |
|
|
std::string const & |
bindIp, |
|
|
uint16 |
port, |
|
|
int |
threadCount = 1 |
|
) |
| |
|
overridevirtual |
Reimplemented from SocketMgr< Session >.
virtual bool StartNetwork(boost::asio::io_service &service, std::string const &bindIp, uint16 port, int threadCount)
Definition: SocketMgr.h:38
AsyncAcceptor * _acceptor
Definition: SocketMgr.h:128
void SetSocketFactory(std::function< std::pair< tcp::socket *, uint32 >()> func)
Definition: AsyncAcceptor.h:78
static void OnSocketAccept(tcp::socket &&sock, uint32 threadIndex)
Definition: SessionManager.cpp:35
std::pair< tcp::socket *, uint32 > GetSocketForAccept()
Definition: SocketMgr.h:115
void AsyncAcceptWithCallback()
Definition: AsyncAcceptor.h:43
The documentation for this class was generated from the following files: