diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-02-27 17:57:53 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-02-27 17:57:53 +0000 |
commit | 007c434f9b33486b0e38f51292c2917ab470bfe6 (patch) | |
tree | 8846199358ef9c8027ffb0d01914d0314917c2a3 /performance-tests | |
parent | 6bfae336ac7b66ac7b1fab9318b6610a5cf0abe2 (diff) | |
download | ATCD-007c434f9b33486b0e38f51292c2917ab470bfe6.tar.gz |
ChangeLogTag:Tue Feb 27 11:38:38 2001 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu>
Diffstat (limited to 'performance-tests')
-rw-r--r-- | performance-tests/TCP/README | 2 | ||||
-rw-r--r-- | performance-tests/TCP/tcp_test.cpp | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/performance-tests/TCP/README b/performance-tests/TCP/README index eeb8d65b368..ac486524c78 100644 --- a/performance-tests/TCP/README +++ b/performance-tests/TCP/README @@ -6,7 +6,7 @@ simply echos packets back to the client. To run: 1) On server host: - % ./tcp_test -c + % ./tcp_test -s 2) On client host: % ./tcp_test -i 10000 <server host> diff --git a/performance-tests/TCP/tcp_test.cpp b/performance-tests/TCP/tcp_test.cpp index 589f6a6adba..0f31a960742 100644 --- a/performance-tests/TCP/tcp_test.cpp +++ b/performance-tests/TCP/tcp_test.cpp @@ -82,6 +82,7 @@ usage (void) " [-s]\n" " [-c]\n" // " [-x max_sample_allowed]\n" + " [-t number of threads]\n" " [-a to use the ACE Select reactor]\n" " [-x to use the ACE TP reactor]\n" " [-w to use the ACE WFMO reactor]\n" @@ -520,7 +521,7 @@ main (int argc, char *argv[]) } - ACE_Get_Opt getopt (argc, argv, "hxwf:vb:I:p:sci:m:at:"); + ACE_Get_Opt getopt (argc, argv, "hxwvb:I:p:sci:m:at:"); while ((c = getopt ()) != -1) { @@ -541,6 +542,11 @@ main (int argc, char *argv[]) ACE_ERROR_RETURN ((LM_ERROR, "\nMessage size must be greater than 0!\n\n"), 1); + else if (bufsz > BUFSIZ) + ACE_ERROR_RETURN ((LM_ERROR, + "\nbufsz must be <= %d\n", + BUFSIZ), + 1); case 'i': nsamples = ACE_OS::atoi (getopt.optarg); |