From c2d78c0b9e152190d3e1703fce01e02fd7cc6d34 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Mon, 1 Apr 2013 22:35:32 -0300 Subject: Introducing socket_datasync a user-friendly way to notify users when their servers are out of sync, e.g. http://hercules.ws/board/topic/328-intif-guild-data-size-error/ http://hercules.ws/board/topic/315-error-chrif-authok-data-size-mismatch-52224-52228/ Signed-off-by: shennetsind --- src/common/socket.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/common/socket.h') diff --git a/src/common/socket.h b/src/common/socket.h index 7c0e02f5d..4879cb109 100644 --- a/src/common/socket.h +++ b/src/common/socket.h @@ -145,6 +145,9 @@ extern int naddr_; // # of ip addresses void set_eof(int fd); +/* [Ind/Hercules] - socket_datasync */ +void socket_datasync(int fd, bool send); + /// Use a shortlist of sockets instead of iterating all sessions for sockets /// that have data to send or need eof handling. /// Adapted to use a static array instead of a linked list. -- cgit v1.2.3-60-g2f50