+ bool operator == (Session &ses) const {
+ return ses.m_id == m_id;
+ }
+ private:
+
+ unsigned long int m_id;
+ bool m_close;
+
+ /// static mutex to lock static m_id
+ static boost::mutex m_mutex;
+
+ /// static m_id to make sure that there is only one id counter
+ static unsigned long int m_global_id;
+