From 658de14e6d5b1d2e0282dbba74bf41f08928f479 Mon Sep 17 00:00:00 2001 From: Mauro Sardara Date: Mon, 15 Jun 2020 12:50:44 +0200 Subject: [HIC-628] Update hicn-http-proxy usage output. Signed-off-by: Mauro Sardara Change-Id: I4981f866aae09952f9799bc0e85543dacdda1e6b --- apps/http-proxy/main.cc | 24 ++++++++++++++++++++---- 1 file 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] \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; } -- cgit 1.2.3-korg