![]() |
TrinityCore
|
Manages all sockets connected to peers and network threads. More...
#include <WorldSocketMgr.h>
Inheritance diagram for WorldSocketMgr:Public Member Functions | |
| ~WorldSocketMgr () | |
| bool | StartNetwork (Trinity::Asio::IoContext &ioContext, std::string const &bindIp, uint16 port, int threadCount) override |
| Start network, listen at address:port . | |
| void | StopNetwork () override |
| Stops all network threads, It will wait for all running threads . | |
| void | OnSocketOpen (Trinity::Net::IoContextTcpSocket &&sock) override |
| std::size_t | GetApplicationSendBufferSize () const |
Public Member Functions inherited from Trinity::Net::SocketMgr< WorldSocketMgrTraits > | |
| SocketMgr (SocketMgr const &)=delete | |
| SocketMgr (SocketMgr &&)=delete | |
| SocketMgr & | operator= (SocketMgr const &)=delete |
| SocketMgr & | operator= (SocketMgr &&)=delete |
| virtual | ~SocketMgr () |
| void | Wait () |
| int32 | GetNetworkThreadCount () const |
| Asio::IoContext * | SelectThreadWithMinConnections () const |
Static Public Member Functions | |
| static WorldSocketMgr & | Instance () |
Protected Member Functions | |
| WorldSocketMgr () | |
Protected Member Functions inherited from Trinity::Net::SocketMgr< WorldSocketMgrTraits > | |
| SocketMgr () | |
| virtual std::unique_ptr< ThreadType[]> | CreateThreads () const |
Private Attributes | |
| int32 | _socketSystemSendBufferSize |
| int32 | _socketApplicationSendBufferSize |
| bool | _tcpNoDelay |
Additional Inherited Members | |
Public Types inherited from Trinity::Net::SocketMgr< WorldSocketMgrTraits > | |
| using | Self = typename Traits::Self |
| using | SocketType = typename Traits::SocketType |
| using | ThreadType = typename Traits::ThreadType |
Protected Attributes inherited from Trinity::Net::SocketMgr< WorldSocketMgrTraits > | |
| std::unique_ptr< AsyncAcceptor > | _acceptor |
| std::unique_ptr< ThreadType[]> | _threads |
| int32 | _threadCount |
Manages all sockets connected to peers and network threads.
Definition at line 42 of file WorldSocketMgr.h.
|
default |
|
protected |
Definition at line 34 of file WorldSocketMgr.cpp.
|
inline |
Definition at line 57 of file WorldSocketMgr.h.
|
static |
Definition at line 40 of file WorldSocketMgr.cpp.
|
overridevirtual |
Reimplemented from Trinity::Net::SocketMgr< WorldSocketMgrTraits >.
Definition at line 78 of file WorldSocketMgr.cpp.
|
overridevirtual |
Start network, listen at address:port .
Reimplemented from Trinity::Net::SocketMgr< WorldSocketMgrTraits >.
Definition at line 46 of file WorldSocketMgr.cpp.
|
overridevirtual |
Stops all network threads, It will wait for all running threads .
Reimplemented from Trinity::Net::SocketMgr< WorldSocketMgrTraits >.
Definition at line 71 of file WorldSocketMgr.cpp.
Here is the caller graph for this function:
|
private |
Definition at line 64 of file WorldSocketMgr.h.
|
private |
Definition at line 63 of file WorldSocketMgr.h.
|
private |
Definition at line 65 of file WorldSocketMgr.h.