sources/network/rconsession.cpp

changeset 14
33b8f428bacb
parent 13
09dcaeaa216b
child 15
33da84af4bba
equal deleted inserted replaced
13:09dcaeaa216b 14:33b8f428bacb
1 #include "rconsession.h" 1 #include "rconsession.h"
2
3 static Vector<RCONSessionPointer> g_allSessions;
2 4
3 // ------------------------------------------------------------------------------------------------- 5 // -------------------------------------------------------------------------------------------------
4 // 6 //
5 RCONSession::RCONSession() : 7 RCONSession::RCONSession() :
6 m_state (RCON_DISCONNECTED), 8 m_state (RCON_DISCONNECTED),
234 { 236 {
235 time_t now; 237 time_t now;
236 time (&now); 238 time (&now);
237 m_lastPing = now; 239 m_lastPing = now;
238 } 240 }
241
242 // -------------------------------------------------------------------------------------------------
243 //
244 STATIC METHOD
245 RCONSession::all_sessions() -> const Vector<RCONSessionPointer>&
246 {
247 return g_allSessions;
248 }

mercurial