diff options
author | Mauro Sardara <msardara@cisco.com> | 2020-06-15 12:50:44 +0200 |
---|---|---|
committer | Mauro Sardara <msardara@cisco.com> | 2020-06-15 12:50:44 +0200 |
commit | 658de14e6d5b1d2e0282dbba74bf41f08928f479 (patch) | |
tree | 8ca7b8681f52d8347736e0e0518d9b5188525085 | |
parent | 961352d7801c4f4bbee2990690b7d5ac5e3c88d6 (diff) |
[HIC-628] Update hicn-http-proxy usage output.
Signed-off-by: Mauro Sardara <msardara@cisco.com>
Change-Id: I4981f866aae09952f9799bc0e85543dacdda1e6b
-rw-r--r-- | apps/http-proxy/main.cc | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/apps/http-proxy/main.cc b/apps/http-proxy/main.cc index d5052ef11..d9c29ecde 100644 --- a/apps/http-proxy/main.cc +++ b/apps/http-proxy/main.cc @@ -18,10 +18,26 @@ using namespace transport; int usage(char* program) { - std::cerr << "USAGE: " << program << "\n" - << "[HTTP_PREFIX] -a [SERVER_IP_ADDRESS] " - "-p [SERVER_PORT] -c [CACHE_SIZE] -m [MTU] -l [DEFAULT_LIFETIME " - "(seconds)] -P [FIRST_IPv6_WORD_HEX] -M (enable manifest)" + std::cerr << "USAGE: " << program << "[-C|-S] [options] <http_prefix>\n" + << "Server or Client: \n" + << " -P [FIRST_IPv6_WORD_HEX]\n" + << " -t [number of threads]\n" + << "Client Options: \n" + << " -L [PROXY_LISTEN_PORT]\n" + << "Server Options: \n" + << " -a [ORIGIN_IP_ADDRESS]\n" + << " -p [ORIGIN_PORT]\n" + << " -c [CACHE_SIZE]\n" + << " -m [MTU]" + << " -l [DEFAULT_CONTENT_LIFETIME] (seconds)\n" + << " -M (enable manifest)\n" + << std::endl + << "Example Server:\n" + << " " << program + << " -S -a example.com -p 80 -c 10000 -m 1300 -l 7200 -M -t 1 " + "http://httpserver\n" + << "Example Client:\n" + << " " << program << " -C -L 9091 http://httpserver\n" << std::endl; return -1; } |