![]() |
TrinityCore
|
#include <NetworkThread.h>
Public Member Functions | |
| NetworkThread () | |
| NetworkThread (NetworkThread const &)=delete | |
| NetworkThread (NetworkThread &&)=delete | |
| NetworkThread & | operator= (NetworkThread const &)=delete |
| NetworkThread & | operator= (NetworkThread &&)=delete |
| virtual | ~NetworkThread () |
| void | Stop () |
| bool | Start () |
| void | Wait () |
| int32 | GetConnectionCount () const |
| virtual void | AddSocket (std::shared_ptr< SocketType > sock) |
| Trinity::Net::IoContextTcpSocket * | GetSocketForAccept () |
Protected Member Functions | |
| virtual void | SocketAdded (std::shared_ptr< SocketType > const &) |
| virtual void | SocketRemoved (std::shared_ptr< SocketType > const &) |
| 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::unique_ptr< std::thread > | _thread |
| SocketContainer | _sockets |
| std::mutex | _newSocketsLock |
| SocketContainer | _newSockets |
| Trinity::Asio::IoContext | _ioContext |
| Trinity::Net::IoContextTcpSocket | _acceptSocket |
| Trinity::Asio::DeadlineTimer | _updateTimer |
Definition at line 40 of file NetworkThread.h.
|
private |
Definition at line 164 of file NetworkThread.h.
|
inline |
Definition at line 43 of file NetworkThread.h.
|
delete |
|
delete |
|
inlinevirtual |
|
inlineprotected |
Definition at line 102 of file NetworkThread.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
|
inline |
Definition at line 83 of file NetworkThread.h.
|
inline |
Definition at line 96 of file NetworkThread.h.
|
delete |
|
delete |
|
inlineprotected |
Definition at line 123 of file NetworkThread.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotectedvirtual |
Reimplemented in WorldSocketThread.
Definition at line 99 of file NetworkThread.h.
Here is the caller graph for this function:
|
inlineprotectedvirtual |
Reimplemented in WorldSocketThread.
Definition at line 100 of file NetworkThread.h.
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 60 of file NetworkThread.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlineprotected |
Definition at line 136 of file NetworkThread.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
private |
Definition at line 177 of file NetworkThread.h.
|
private |
Definition at line 166 of file NetworkThread.h.
|
private |
Definition at line 176 of file NetworkThread.h.
|
private |
Definition at line 174 of file NetworkThread.h.
|
private |
Definition at line 173 of file NetworkThread.h.
|
private |
Definition at line 171 of file NetworkThread.h.
|
private |
Definition at line 167 of file NetworkThread.h.
|
private |
Definition at line 169 of file NetworkThread.h.
|
private |
Definition at line 178 of file NetworkThread.h.