TrinityCore
|
#include <NetworkThread.h>
Public Member Functions | |
NetworkThread () | |
virtual | ~NetworkThread () |
void | Stop () |
bool | Start () |
void | Wait () |
int32 | GetConnectionCount () const |
void | AddSocket (std::shared_ptr< SocketType > sock) |
boost::asio::ip::tcp::socket * | GetSocketForAccept () |
Protected Member Functions | |
virtual void | SocketAdded (std::shared_ptr< SocketType >) |
virtual void | SocketRemoved (std::shared_ptr< SocketType >) |
void | AddNewSockets () |
void | Run () |
void | Update () |
Private Types | |
typedef std::vector< std::shared_ptr< SocketType > > | SocketContainer |
Private Attributes | |
std::atomic< int32 > | _connections |
std::atomic< bool > | _stopped |
std::thread * | _thread |
SocketContainer | _sockets |
std::mutex | _newSocketsLock |
SocketContainer | _newSockets |
Trinity::Asio::IoContext | _ioContext |
boost::asio::ip::tcp::socket | _acceptSocket |
Trinity::Asio::DeadlineTimer | _updateTimer |
Definition at line 33 of file NetworkThread.h.
|
private |
Definition at line 157 of file NetworkThread.h.
|
inline |
Definition at line 36 of file NetworkThread.h.
|
inlinevirtual |
|
inlineprotected |
Definition at line 95 of file NetworkThread.h.
|
inline |
|
inline |
Definition at line 75 of file NetworkThread.h.
|
inline |
Definition at line 89 of file NetworkThread.h.
|
inlineprotected |
Definition at line 116 of file NetworkThread.h.
|
inlineprotectedvirtual |
Reimplemented in WorldSocketThread.
Definition at line 92 of file NetworkThread.h.
|
inlineprotectedvirtual |
Reimplemented in Trinity::Net::Http::HttpService< SessionImpl >::Thread, and WorldSocketThread.
Definition at line 93 of file NetworkThread.h.
|
inline |
|
inline |
Definition at line 51 of file NetworkThread.h.
|
inlineprotected |
Definition at line 129 of file NetworkThread.h.
|
inline |
|
private |
Definition at line 170 of file NetworkThread.h.
|
private |
Definition at line 159 of file NetworkThread.h.
|
private |
Definition at line 169 of file NetworkThread.h.
|
private |
Definition at line 167 of file NetworkThread.h.
|
private |
Definition at line 166 of file NetworkThread.h.
|
private |
Definition at line 164 of file NetworkThread.h.
|
private |
Definition at line 160 of file NetworkThread.h.
|
private |
Definition at line 162 of file NetworkThread.h.
|
private |
Definition at line 171 of file NetworkThread.h.