The unified diff between revisions [83b5270b..] and [5587f68e..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'netcmd.hh'
#
#
# patch "netcmd.hh"
# from [8bea78d5e3429c65cc158c90450a7473528ceb07]
# to [87007edfa58287e177df2f3246b28eaa5c5f6146]
#
============================================================
--- netcmd.hh 8bea78d5e3429c65cc158c90450a7473528ceb07
+++ netcmd.hh 87007edfa58287e177df2f3246b28eaa5c5f6146
@@ -44,7 +44,16 @@ typedef enum
send_delta_cmd = 9,
data_cmd = 10,
delta_cmd = 11,
- nonexistant_cmd = 12
+ nonexistant_cmd = 12,
+
+ // usher commands
+ // usher_cmd is sent by a server farm (or anyone else who wants to serve
+ // from multiple databases over the same port), and the reply (containing
+ // the client's include pattern) is used to choose a server to forward the
+ // connection to.
+ // usher_cmd is never sent by the monotone server itself.
+ usher_cmd = 100,
+ usher_reply_cmd = 101
}
netcmd_code;
@@ -158,6 +167,9 @@ public:
void write_nonexistant_cmd(netcmd_item_type type,
id const & item);
+ void read_usher_cmd(utf8 & greeting) const;
+ void write_usher_reply_cmd(utf8 const & pattern);
+
};
#endif // __NETCMD_HH__