|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Public Member Functions | |
| int | AddSocket (WorldSocket *sock) |
| long | Connections () |
| boost::asio::io_context & | GetIoContext () |
| ReactorRunnable () | |
| void | SocketClosed (WorldSocket *sock) |
| int | Start () |
| void | Stop () |
| void | Wait () |
| virtual | ~ReactorRunnable () |
Private Types | |
| typedef std::atomic< long > | AtomicInt |
| typedef std::set< WorldSocket * > | SocketSet |
Private Attributes | |
| AtomicInt | m_Connections |
| SocketSet | m_Sockets |
| std::mutex | m_SocketsLock |
| std::atomic< bool > | m_Stopped |
| Skyfire::Asio::IoContextThreadGroup | m_ThreadGroup |
This is a helper class to WorldSocketMgr, that manages network threads, and assigning connections from acceptor thread to other network threads
Definition at line 34 of file WorldSocketMgr.cpp.
|
private |
Definition at line 144 of file WorldSocketMgr.cpp.
|
private |
Definition at line 145 of file WorldSocketMgr.cpp.
|
inline |
Definition at line 37 of file WorldSocketMgr.cpp.
References m_Connections, m_Stopped, and m_ThreadGroup.
|
inlinevirtual |
Definition at line 44 of file WorldSocketMgr.cpp.
|
inline |
Definition at line 96 of file WorldSocketMgr.cpp.
References WorldSocket::AddReference(), m_Connections, m_Sockets, m_SocketsLock, m_Stopped, WorldSocket::RemoveReference(), SocketClosed(), sScriptMgr, and WorldSocket::Start().
Referenced by WorldSocketMgr::OnSocketOpen().
|
inline |
Definition at line 86 of file WorldSocketMgr.cpp.
References m_Connections.
|
inline |
Definition at line 91 of file WorldSocketMgr.cpp.
References m_ThreadGroup.
Referenced by WorldSocketMgr::GetNetworkIoContext().
|
inline |
Definition at line 121 of file WorldSocketMgr.cpp.
References m_Connections, m_Sockets, m_SocketsLock, WorldSocket::RemoveReference(), and sScriptMgr.
Referenced by AddSocket().
|
inline |
Definition at line 68 of file WorldSocketMgr.cpp.
References m_ThreadGroup, and SF_LOG_DEBUG.
|
inline |
Definition at line 50 of file WorldSocketMgr.cpp.
References m_Sockets, m_SocketsLock, m_Stopped, and m_ThreadGroup.
Referenced by ~ReactorRunnable().
|
inline |
Definition at line 81 of file WorldSocketMgr.cpp.
References m_ThreadGroup.
Referenced by ~ReactorRunnable().
|
private |
Definition at line 148 of file WorldSocketMgr.cpp.
Referenced by AddSocket(), Connections(), ReactorRunnable(), and SocketClosed().
|
private |
Definition at line 151 of file WorldSocketMgr.cpp.
Referenced by AddSocket(), SocketClosed(), and Stop().
|
private |
Definition at line 152 of file WorldSocketMgr.cpp.
Referenced by AddSocket(), SocketClosed(), and Stop().
|
private |
Definition at line 149 of file WorldSocketMgr.cpp.
Referenced by AddSocket(), ReactorRunnable(), and Stop().
|
private |
Definition at line 147 of file WorldSocketMgr.cpp.
Referenced by GetIoContext(), ReactorRunnable(), Start(), Stop(), and Wait().