summaryrefslogtreecommitdiff
path: root/sock.h
diff options
context:
space:
mode:
Diffstat (limited to 'sock.h')
-rwxr-xr-xsock.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/sock.h b/sock.h
index abb5878..ea695c4 100755
--- a/sock.h
+++ b/sock.h
@@ -1,7 +1,7 @@
// class sock declaration.
-#ifndef SOCK_H
-#define SOCK_H
+#ifndef s_sock_H
+#define s_sock_H
#include <queue>
#include <arpa/inet.h>
@@ -18,7 +18,8 @@
#include "pool.h"
#include "reqp.h"
#include "thrd.h"
-
+#include "user.h"
+#include "logd.h"
using namespace std;
class sock
@@ -30,10 +31,7 @@ private:
bool b_run; // true while socket manager is running.
reqp* req_parser; // parses the http requests from clients.
pool* thrd_pool; // the thread pool.
-
- // the chat stream there all the chat messages will sent through.
- static void chat_stream( int i_sock, map_string &map_params );
-
+ logd* log_daemon; // the log daemon
// creates a server socket.
virtual int make_socket( uint16_t port );
@@ -46,6 +44,10 @@ public:
explicit sock( ); // simple constructor.
virtual int read_write( thrd* p_thrd, int filedes );
virtual int start();
+
+ // the chat stream there all the chat messages will sent through.
+ static void chat_stream( int i_sock, user* p_user, map_string &map_params );
+
};
#endif