sources/network/rconsession.cpp

changeset 14
33b8f428bacb
parent 13
09dcaeaa216b
child 15
33da84af4bba
--- a/sources/network/rconsession.cpp	Sat Dec 13 04:50:33 2014 +0200
+++ b/sources/network/rconsession.cpp	Sat Dec 13 07:36:00 2014 +0200
@@ -1,5 +1,7 @@
 #include "rconsession.h"
 
+static Vector<RCONSessionPointer> g_allSessions;
+
 // -------------------------------------------------------------------------------------------------
 //
 RCONSession::RCONSession() :
@@ -236,3 +238,11 @@
 	time (&now);
 	m_lastPing = now;
 }
+
+// -------------------------------------------------------------------------------------------------
+//
+STATIC METHOD
+RCONSession::all_sessions() -> const Vector<RCONSessionPointer>&
+{
+	return g_allSessions;
+}

mercurial