#
# patch "ChangeLog"
# from [1922f0f586ad5eee0e79c1955441b9df3d0f6ded]
# to [adc66ae3d08a555a7c42f431e3c4d56e602176c0]
#
# patch "contrib/usher.cc"
# from [c67d693036174bc4a591c02202c65e6b8521fc59]
# to [454acd6ae3513b0f2925177c0a72f5a14e99fc30]
#
# patch "netcmd.cc"
# from [38e6b3a85549ed7c7e5f109623d9ea1b802fc340]
# to [7b2a66cff2f716be765f9536dab1734e8fc1b0b4]
#
# patch "netcmd.hh"
# from [87007edfa58287e177df2f3246b28eaa5c5f6146]
# to [104f746aaddbc57fbf388486c6247c8c48eb6cf8]
#
# patch "netsync.cc"
# from [3b956db0420ef07f1020e8faa8d3f872abb740d9]
# to [750ebec30f4cb560e17fcb14adbc601fdd73224f]
#
========================================================================
--- ChangeLog 1922f0f586ad5eee0e79c1955441b9df3d0f6ded
+++ ChangeLog adc66ae3d08a555a7c42f431e3c4d56e602176c0
@@ -1,5 +1,13 @@
2005-10-18 Timothy Brownawell
+ * netsync.cc netcmd.{cc,hh}: usher_reply_cmd now has both who we
+ connected to *and* what pattern we asked for
+ * contrib/usher.cc: new file format, allow to key servers on either
+ hostname or pattern, hostname checked first
+ reload config file on SIGHUP
+
+2005-10-18 Timothy Brownawell
+
* netsync.cc (session::process_usher_cmd): reply with who we connected
to (hostname or hostname:port), not what pattern we asked for.
* contrib/usher.cc: Update comment.
========================================================================
--- contrib/usher.cc c67d693036174bc4a591c02202c65e6b8521fc59
+++ contrib/usher.cc 454acd6ae3513b0f2925177c0a72f5a14e99fc30
@@ -14,14 +14,27 @@
//
// is the address to listen on
// is the local port to listen on
-// is a file containing lines of
-// hostname remote ip-address port-number
-// hostname local
+// is a file that looks like
+// server monotone
+// host localhost
+// pattern net.venge.monotone
+// remote 66.96.28.3:5253
+//
+// server local
+// host 127.0.0.1
+// pattern *
+// local -d /usr/local/src/managed/mt.db~ *
//
-// Example server-file:
-// localhost local -d /usr/local/src/project.db *
-// venge.net remote 66.96.28.3 5253
-// company.com:5200 remote 192.168.4.5 5200
+// or in general, blocks of a
+// server
+// line followed by one or more
+// host
+// lines and/or one or more
+// pattern
+// lines, and one of
+// remote
+// local
+// , with blocks separated by blank lines
//
// A request to server "hostname" will be directed to the
// server at :, if that stem is marked as remote,
@@ -53,16 +66,21 @@
#include
#include
#include
+#include