diff options
Diffstat (limited to 'src/sock/sock.h')
| -rwxr-xr-x | src/sock/sock.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/src/sock/sock.h b/src/sock/sock.h index 65fe756..264d9d1 100755 --- a/src/sock/sock.h +++ b/src/sock/sock.h @@ -11,6 +11,7 @@ #include <netdb.h> #include "../reqp.h" +#include "../chat/user.h" #include "../thrd/pool.h" #include "../maps/shashmap.h" @@ -70,11 +71,17 @@ public: void clean_ipcache(); // the chat stream there all the chat messages will sent through. - virtual inline int _send(socketcontainer *p_sock, const char *sz, int len); - virtual inline int _read(socketcontainer *p_sock, char *sz, int len); - virtual inline int _close(socketcontainer *p_sock); + void chat_stream( socketcontainer* p_sock, user* p_user, map<string,string> &map_params ); //<< + virtual int _send(socketcontainer *p_sock, const char *sz, int len); + virtual int _read(socketcontainer *p_sock, char *sz, int len); + virtual int _close(socketcontainer *p_sock); virtual void _main_loop_init(); - virtual inline socketcontainer* _create_container(int& i_sock); +#ifdef OPENSSL + + virtual bool _main_loop_do_ssl_stuff(int& i_new_sock); +#endif + + virtual socketcontainer* _create_container(int& i_sock); virtual int _make_server_socket(int i_port); #ifdef NCURSES |
