summaryrefslogtreecommitdiff
path: root/src/common/socket.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-01 22:35:32 -0300
committershennetsind <ind@henn.et>2013-04-01 22:35:32 -0300
commitc2d78c0b9e152190d3e1703fce01e02fd7cc6d34 (patch)
treef0f229e215cfb1044160cbc56c518c3cde92c831 /src/common/socket.h
parenta4e273d9bed24286002bed8f2909f0ff1b5c4f91 (diff)
downloadhercules-c2d78c0b9e152190d3e1703fce01e02fd7cc6d34.tar.gz
hercules-c2d78c0b9e152190d3e1703fce01e02fd7cc6d34.tar.bz2
hercules-c2d78c0b9e152190d3e1703fce01e02fd7cc6d34.tar.xz
hercules-c2d78c0b9e152190d3e1703fce01e02fd7cc6d34.zip
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 <ind@henn.et>
Diffstat (limited to 'src/common/socket.h')
-rw-r--r--src/common/socket.h3
1 files changed, 3 insertions, 0 deletions
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.