summaryrefslogtreecommitdiff
path: root/src/sock/sock.h
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:45 +0200
commit5f4e214740242513c837c8a005ca23779bab1d0c (patch)
tree3880f745b0d3376030e3342e60679f25b38bdc4c /src/sock/sock.h
parent23c5e7d57e1e9216f4da3446656df2dc7202975d (diff)
tagging ychat-0.8.2ychat-0.8.2
Diffstat (limited to 'src/sock/sock.h')
-rwxr-xr-xsrc/sock/sock.h15
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