![]() |
TrinityCore
|
#include <SocketMgr.h>
Inheritance diagram for Trinity::Net::SocketMgr< Traits >:Public Types | |
| using | Self = typename Traits::Self |
| using | SocketType = typename Traits::SocketType |
| using | ThreadType = typename Traits::ThreadType |
Public Member Functions | |
| SocketMgr (SocketMgr const &)=delete | |
| SocketMgr (SocketMgr &&)=delete | |
| SocketMgr & | operator= (SocketMgr const &)=delete |
| SocketMgr & | operator= (SocketMgr &&)=delete |
| virtual | ~SocketMgr () |
| virtual bool | StartNetwork (Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount) |
| virtual void | StopNetwork () |
| void | Wait () |
| virtual void | OnSocketOpen (IoContextTcpSocket &&sock) |
| int32 | GetNetworkThreadCount () const |
| Asio::IoContext * | SelectThreadWithMinConnections () const |
Protected Member Functions | |
| SocketMgr () | |
| virtual std::unique_ptr< ThreadType[]> | CreateThreads () const |
Protected Attributes | |
| std::unique_ptr< AsyncAcceptor > | _acceptor |
| std::unique_ptr< ThreadType[]> | _threads |
| int32 | _threadCount |
Definition at line 31 of file SocketMgr.h.
| using Trinity::Net::SocketMgr< Traits >::Self = typename Traits::Self |
Definition at line 34 of file SocketMgr.h.
| using Trinity::Net::SocketMgr< Traits >::SocketType = typename Traits::SocketType |
Definition at line 35 of file SocketMgr.h.
| using Trinity::Net::SocketMgr< Traits >::ThreadType = typename Traits::ThreadType |
Definition at line 36 of file SocketMgr.h.
|
delete |
|
delete |
|
inlinevirtual |
Definition at line 43 of file SocketMgr.h.
|
inlineprotected |
Definition at line 139 of file SocketMgr.h.
|
inlineprotectedvirtual |
Reimplemented in Trinity::Net::Http::HttpService< SessionImpl >, and Trinity::Net::Http::HttpService< LoginHttpSession >.
Definition at line 143 of file SocketMgr.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inlinevirtual |
Reimplemented in WorldSocketMgr.
Definition at line 105 of file SocketMgr.h.
Here is the caller graph for this function:
|
delete |
|
delete |
|
inline |
|
inlinevirtual |
Reimplemented in WorldSocketMgr.
Definition at line 48 of file SocketMgr.h.
Here is the call graph for this function:
|
inlinevirtual |
Reimplemented in Trinity::Net::Http::HttpService< SessionImpl >, Trinity::Net::Http::HttpService< LoginHttpSession >, and WorldSocketMgr.
Definition at line 85 of file SocketMgr.h.
Here is the call graph for this function:
|
inline |
Definition at line 99 of file SocketMgr.h.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 148 of file SocketMgr.h.
|
protected |
Definition at line 150 of file SocketMgr.h.
|
protected |
Definition at line 149 of file SocketMgr.h.