From 5f4e214740242513c837c8a005ca23779bab1d0c Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sat, 6 Apr 2013 13:14:45 +0200 Subject: tagging ychat-0.8.2 --- src/sock/sock.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/sock/sock.h') 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 #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 &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 -- cgit v1.2.3