summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2011-09-26 18:16:29 -0700
committerRuss Allbery <rra@stanford.edu>2011-09-26 18:16:29 -0700
commit49b7261837dfd815166a84dad5be9130b41e73b1 (patch)
tree3ccde6e72f5f4c5f188b7ca7dd07e5918c6d01f1 /util
parent00677072c1f512ae058a7031cab164a5518e0bd0 (diff)
Introduce protocol version 3 and the NOOP command
New protocol version 3, which introduces a new NOOP message. When the client sends this message, the server replies with a NOOP message. This can be used to keep a persistent remctl connection alive despite network session timeouts.
Diffstat (limited to 'util')
-rw-r--r--util/protocol.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/protocol.h b/util/protocol.h
index ca19a6a..5799273 100644
--- a/util/protocol.h
+++ b/util/protocol.h
@@ -6,7 +6,7 @@
*
* Written by Russ Allbery <rra@stanford.edu>
* Based on prior work by Anton Ushakov
- * Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
+ * Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
* The Board of Trustees of the Leland Stanford Junior University
*
* See LICENSE for licensing terms.
@@ -26,7 +26,8 @@ enum message_types {
MESSAGE_OUTPUT = 3,
MESSAGE_STATUS = 4,
MESSAGE_ERROR = 5,
- MESSAGE_VERSION = 6
+ MESSAGE_VERSION = 6,
+ MESSAGE_NOOP = 7
};
/* Windows uses this for something else. */