#include <NetworkThread.h>
template<class SocketType>
template<class SocketType>
boost::asio::io_service _io_service
Definition: NetworkThread.h:173
std::atomic< bool > _stopped
Definition: NetworkThread.h:164
std::atomic< int32 > _connections
Definition: NetworkThread.h:163
std::thread * _thread
Definition: NetworkThread.h:166
tcp::socket _acceptSocket
Definition: NetworkThread.h:174
boost::asio::deadline_timer _updateTimer
Definition: NetworkThread.h:175
template<class SocketType>
void Wait()
Definition: NetworkThread.h:70
void Stop()
Definition: NetworkThread.h:55
std::thread * _thread
Definition: NetworkThread.h:166
template<class SocketType>
106 for (std::shared_ptr<SocketType> sock :
_newSockets)
SocketContainer _newSockets
Definition: NetworkThread.h:171
SocketContainer _sockets
Definition: NetworkThread.h:168
std::atomic< int32 > _connections
Definition: NetworkThread.h:163
std::mutex _newSocketsLock
Definition: NetworkThread.h:170
virtual void SocketRemoved(std::shared_ptr< SocketType >)
Definition: NetworkThread.h:97
template<class SocketType>
virtual void NetworkThread< SocketType >::AddSocket |
( |
std::shared_ptr< SocketType > |
sock | ) |
|
|
inlinevirtual |
SocketContainer _newSockets
Definition: NetworkThread.h:171
std::atomic< int32 > _connections
Definition: NetworkThread.h:163
std::mutex _newSocketsLock
Definition: NetworkThread.h:170
virtual void SocketAdded(std::shared_ptr< SocketType >)
Definition: NetworkThread.h:96
template<class SocketType>
std::atomic< int32 > _connections
Definition: NetworkThread.h:163
template<class SocketType>
tcp::socket _acceptSocket
Definition: NetworkThread.h:174
template<class SocketType>
boost::asio::io_service _io_service
Definition: NetworkThread.h:173
SocketContainer _newSockets
Definition: NetworkThread.h:171
#define TC_LOG_DEBUG(filterType__,...)
Definition: Log.h:198
SocketContainer _sockets
Definition: NetworkThread.h:168
Definition: NetworkThread.h:37
boost::asio::deadline_timer _updateTimer
Definition: NetworkThread.h:175
float milliseconds()
Definition: units.h:92
template<class SocketType>
virtual void NetworkThread< SocketType >::SocketAdded |
( |
std::shared_ptr< SocketType > |
| ) |
|
|
inlineprotectedvirtual |
template<class SocketType>
virtual void NetworkThread< SocketType >::SocketRemoved |
( |
std::shared_ptr< SocketType > |
| ) |
|
|
inlineprotectedvirtual |
template<class SocketType>
void Run()
Definition: NetworkThread.h:120
std::thread * _thread
Definition: NetworkThread.h:166
template<class SocketType>
boost::asio::io_service _io_service
Definition: NetworkThread.h:173
std::atomic< bool > _stopped
Definition: NetworkThread.h:164
template<class SocketType>
std::atomic< bool > _stopped
Definition: NetworkThread.h:164
SocketContainer _sockets
Definition: NetworkThread.h:168
std::atomic< int32 > _connections
Definition: NetworkThread.h:163
Definition: NetworkThread.h:37
virtual void SocketRemoved(std::shared_ptr< SocketType >)
Definition: NetworkThread.h:97
boost::asio::deadline_timer _updateTimer
Definition: NetworkThread.h:175
float milliseconds()
Definition: units.h:92
void AddNewSockets()
Definition: NetworkThread.h:99
template<class SocketType>
std::thread * _thread
Definition: NetworkThread.h:166
#define ASSERT
Definition: Errors.h:55
template<class SocketType>
template<class SocketType>
template<class SocketType>
template<class SocketType>
template<class SocketType>
template<class SocketType>
template<class SocketType>
template<class SocketType>
template<class SocketType>
boost::asio::deadline_timer NetworkThread< SocketType >::_updateTimer |
|
private |
The documentation for this class was generated from the following file: