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.8.2/src/chat/sman.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 ychat-0.8.2/src/chat/sman.h (limited to 'ychat-0.8.2/src/chat/sman.h') diff --git a/ychat-0.8.2/src/chat/sman.h b/ychat-0.8.2/src/chat/sman.h new file mode 100755 index 0000000..13fc45a --- /dev/null +++ b/ychat-0.8.2/src/chat/sman.h @@ -0,0 +1,42 @@ +#include "../incl.h" + +#ifndef SMAN_H +#define SMAN_H + +#include + +#include "sess.h" +#include "../maps/shashmap.h" +#include "../monitor/dump.h" + +using namespace std; + +class sman : public shashmap +{ +private: + string generate_id( int i_len ); + int i_session_count; + + pthread_mutex_t mut_i_session_count; +#ifdef NCURSES + + void print_sessions(); +#endif + +public: + sman(); + ~sman(); + sess *get_session( string s_tmpid ); + int get_session_count( ); + sess *create_session( ); + void destroy_session( string s_tmpid ); +#ifdef NCURSES + + void print_init_ncurses(); +#endif + +}; + + +#endif + -- cgit v1.2.3