From 8e7e92c1f5a771d21e4069b4aef4de0fc24dcd46 Mon Sep 17 00:00:00 2001 From: Laurent Ghigonis Date: Thu, 29 Nov 2012 22:59:31 +0100 Subject: add security mention when starting server or creating a client : "for security, do not set handle_packet if you don't need it" --- libglouglou/libglouglou.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libglouglou/libglouglou.c') diff --git a/libglouglou/libglouglou.c b/libglouglou/libglouglou.c index 275e033..ce23e1a 100644 --- a/libglouglou/libglouglou.c +++ b/libglouglou/libglouglou.c @@ -33,6 +33,7 @@ int pkt_getsize(struct gg_packet *); /* * start a server + * for security, do not set handle_packet if you don't need it. */ struct gg_server * gg_server_start(struct event_base *ev_base, char *ip, int port, @@ -225,6 +226,7 @@ user_send(struct gg_user *usr, void *data, int size) /* * connect to a server + * for security, do not set handle_packet if you don't need it. */ struct gg_client * gg_client_connect(struct event_base *ev_base, char *ip, int port, -- cgit v1.2.3-59-g8ed1b