diff options
author | Russ Allbery <rra@stanford.edu> | 2011-09-26 18:16:29 -0700 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2011-09-26 18:16:29 -0700 |
commit | 49b7261837dfd815166a84dad5be9130b41e73b1 (patch) | |
tree | 3ccde6e72f5f4c5f188b7ca7dd07e5918c6d01f1 /util | |
parent | 00677072c1f512ae058a7031cab164a5518e0bd0 (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.h | 5 |
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. */ |