diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:46 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:46 +0200 |
| commit | 07706f56cd421bf8b101a5c0fe44674d36e161a0 (patch) | |
| tree | bec8b45765788370fbd148d68e05d8b437e60670 /sock.h | |
| parent | 56187184e11b085b82584d3b088c62f427aae83c (diff) | |
tagging ychat-0.5.1ychat-0.5.1
Diffstat (limited to 'sock.h')
| -rwxr-xr-x | sock.h | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -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 |
