diff options
Diffstat (limited to 'ychat-0.5.0/sman.h')
| -rw-r--r-- | ychat-0.5.0/sman.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ychat-0.5.0/sman.h b/ychat-0.5.0/sman.h new file mode 100644 index 0000000..336bdf1 --- /dev/null +++ b/ychat-0.5.0/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 <cstdlib> + +using namespace std; + +class sman{ + + private: + hmap<sess *, string> *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 + |
