From 9cd3ccffd5372dfde3af478e3f832f18db4be3f1 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:41 +0200 Subject: tagging tags --- ychat-0.5.1/sman.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 ychat-0.5.1/sman.h (limited to 'ychat-0.5.1/sman.h') diff --git a/ychat-0.5.1/sman.h b/ychat-0.5.1/sman.h new file mode 100644 index 0000000..336bdf1 --- /dev/null +++ b/ychat-0.5.1/sman.h @@ -0,0 +1,32 @@ +#ifndef SMAN_H +#define SMAN_H + +#include "incl.h" +#include "hmap.h" +#include "sess.h" +#include "s_tool.h" +#include "s_conf.h" +#include + +using namespace std; + +class sman{ + + private: + hmap *sessions; + string generateId( int len ); + int sessioncount; + public: + sman(); + ~sman(); + sess *getSession( string s_id ); + int getSessionCount( ) { return this->sessioncount; } + sess *createSession( ); + void destroySession( string s_id ); + + +}; + + +#endif + -- cgit v1.2.3