summaryrefslogtreecommitdiff
path: root/src/options.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/options.hpp')
-rw-r--r--src/options.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/options.hpp b/src/options.hpp
index 1ea61bd..3e47336 100644
--- a/src/options.hpp
+++ b/src/options.hpp
@@ -89,6 +89,9 @@ namespace xs
// connect to and accept connections from both IPv4 and IPv6 hosts.
int ipv4only;
+ // If 1, keepalives are to be sent periodically.
+ int keepalive;
+
// If true, session reads all the pending messages from the pipe and
// sends them to the network when socket is closed.
bool delay_on_close;