summaryrefslogtreecommitdiff
path: root/src/common/socket.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2019-03-21 03:20:26 +0300
committerAndrei Karas <akaras@inbox.ru>2019-04-07 22:38:34 +0300
commite918e4d9a8a56cc6a0a653fa6398d731484496c7 (patch)
tree9f90a85e4adf0140fab745f275f5905ce1b932c8 /src/common/socket.h
parent072b831c2cf88f3161c0a0c2e4742d8f30f9701a (diff)
downloadhercules-e918e4d9a8a56cc6a0a653fa6398d731484496c7.tar.gz
hercules-e918e4d9a8a56cc6a0a653fa6398d731484496c7.tar.bz2
hercules-e918e4d9a8a56cc6a0a653fa6398d731484496c7.tar.xz
hercules-e918e4d9a8a56cc6a0a653fa6398d731484496c7.zip
Add ZC_PING and CZ_PING packets
For supported packet version, from now server send ping packets to client.
Diffstat (limited to 'src/common/socket.h')
-rw-r--r--src/common/socket.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common/socket.h b/src/common/socket.h
index 193b22645..b20b0b07e 100644
--- a/src/common/socket.h
+++ b/src/common/socket.h
@@ -130,6 +130,7 @@ struct socket_data {
size_t rdata_pos;
uint32 last_head_size;
time_t rdata_tick; // time of last recv (for detecting timeouts); zero when timeout is disabled
+ time_t wdata_tick; // time of last send (for detecting timeouts);
RecvFunc func_recv;
SendFunc func_send;