summaryrefslogtreecommitdiff
path: root/sock.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:46 +0200
commit07706f56cd421bf8b101a5c0fe44674d36e161a0 (patch)
treebec8b45765788370fbd148d68e05d8b437e60670 /sock.h
parent56187184e11b085b82584d3b088c62f427aae83c (diff)
tagging ychat-0.5.1ychat-0.5.1
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