Commit 787b3976 authored by iwitggwg's avatar iwitggwg

Update simple_broker.cpp

allow examples/simple_broker client specifies server host
parent 09d32c72
...@@ -191,7 +191,7 @@ int main(int argc, char** argv) { ...@@ -191,7 +191,7 @@ int main(int argc, char** argv) {
{"server,s", "run in server mode"}, {"server,s", "run in server mode"},
{"client,c", "run in client mode"}, {"client,c", "run in client mode"},
{"port,p", "set port", port}, {"port,p", "set port", port},
{"host,H", "set host (client mode only"} {"host,H", "set host (client mode only)", host}
}); });
if (! res.error.empty()) { if (! res.error.empty()) {
cerr << res.error << endl; cerr << res.error << endl;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment