summaryrefslogtreecommitdiff
path: root/src/chat/sman.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:44 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:44 +0200
commitc8b2ef7b899766d04562f7e04a84251cea8fa701 (patch)
tree52816b17c17e2db0cf89e68537ad1a52392f1510 /src/chat/sman.h
parentca28c0e618890330d429c0dc12429255b20f0c90 (diff)
tagging ychat-0.8.0ychat-0.8.0
Diffstat (limited to 'src/chat/sman.h')
-rwxr-xr-xsrc/chat/sman.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/src/chat/sman.h b/src/chat/sman.h
index ad00339..13fc45a 100755
--- a/src/chat/sman.h
+++ b/src/chat/sman.h
@@ -7,30 +7,34 @@
#include "sess.h"
#include "../maps/shashmap.h"
+#include "../monitor/dump.h"
using namespace std;
-class sman : private shashmap<sess*>
+class sman : public shashmap<sess*>
{
private:
- string generate_id( int i_len );
- int i_session_count;
+ string generate_id( int i_len );
+ int i_session_count;
- pthread_mutex_t mut_i_session_count;
+ pthread_mutex_t mut_i_session_count;
#ifdef NCURSES
- void print_sessions();
+
+ 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 );
+ 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();
+
+ void print_init_ncurses();
#endif
+
};