diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2013-12-10 10:57:24 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-12-10 10:57:24 +0100 |
commit | 0a5dbef13992070bd30e244f8d361d5a13852dfd (patch) | |
tree | d64c6b04c3f786a1b835ea1ccdee030f4992f8a6 | |
parent | 2b53d420caa157aa7084ace2c07365bd675e026a (diff) | |
download | socket_wrapper-0a5dbef13992070bd30e244f8d361d5a13852dfd.tar.gz socket_wrapper-0a5dbef13992070bd30e244f8d361d5a13852dfd.tar.xz socket_wrapper-0a5dbef13992070bd30e244f8d361d5a13852dfd.zip |
-rw-r--r-- | tests/echo_srv.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/echo_srv.c b/tests/echo_srv.c index 13e2bc3..32a03da 100644 --- a/tests/echo_srv.c +++ b/tests/echo_srv.c @@ -296,8 +296,15 @@ int main(int argc, char **argv) opts.daemon = true; break; default: /* '?' */ - fprintf(stderr, "Usage: %s [-p port] [-u] [-t] [--pid pidfile]\n", - argv[0]); + fprintf(stderr, "Usage: %s [-p port] [-u] [-t] [-b bind_addr] " \ + "[-D] [--pid pidfile]\n" + "-t makes the server listen on TCP\n" + "-u makes the server listen on UDP\n" + "-D tells the server to become a deamon and " \ + "write a PIDfile\n" + "The default port is 7, the default PIDfile is " \ + "echo_srv.pid in the current directory\n", + argv[0]); ret = 1; goto done; } |