summaryrefslogtreecommitdiff
path: root/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'user.h')
-rwxr-xr-x[-rw-r--r--]user.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/user.h b/user.h
index cc7bf91..1bdd79e 100644..100755
--- a/user.h
+++ b/user.h
@@ -26,6 +26,7 @@ private:
room* p_room; // pointer to the user's room.
pthread_mutex_t mut_b_online;
+ pthread_mutex_t mut_i_sock;
pthread_mutex_t mut_l_time;
pthread_mutex_t mut_s_mess;
pthread_mutex_t mut_p_room;
@@ -38,9 +39,6 @@ public:
string get_col1() const { return s_col1; }
void set_col1 ( string s_col1 ) { this -> s_col1 = s_col1; }
- int get_sock() const { return i_sock; }
- void set_sock ( int i_sock ) { this -> i_sock = i_sock; }
-
rang get_rang ( ) const { return r_rang; }
void set_rang ( rang r_rang ) { r_oldr = this -> r_rang;
this -> r_rang = r_rang; }
@@ -60,6 +58,9 @@ public:
virtual void set_online( bool b_online );
virtual room* get_p_room();
virtual void set_p_room( room* p_room );
+ virtual int get_sock ( );
+ virtual void set_sock ( int i_sock );
+
virtual void renew_stamp();