diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-11-29 15:45:49 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2004-11-29 15:45:49 +0000 |
commit | 25bc4e2dd007db9af1cc776a126b3c28bbc0cb6c (patch) | |
tree | 6bc92b44df5662af7bbf6229172e37c8be069006 | |
parent | 6844e808fd6337e907ea71688795eea10ea6c4e2 (diff) | |
download | ATCD-25bc4e2dd007db9af1cc776a126b3c28bbc0cb6c.tar.gz |
ChangeLogTag: Mon Nov 29 15:43:12 UTC 2004 Martin Corino <mcorino@remedy.nl>
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | performance-tests/SCTP/Options_Manager.cpp | 80 | ||||
-rw-r--r-- | performance-tests/SCTP/Options_Manager.h | 3 | ||||
-rw-r--r-- | performance-tests/SCTP/SOCK_SEQPACK_clt.cpp | 4 | ||||
-rw-r--r-- | performance-tests/SCTP/SOCK_SEQPACK_srv.cpp | 4 | ||||
-rw-r--r-- | performance-tests/SCTP/SOCK_STREAM_clt.cpp | 4 | ||||
-rw-r--r-- | performance-tests/SCTP/SOCK_STREAM_srv.cpp | 4 |
7 files changed, 60 insertions, 50 deletions
diff --git a/ChangeLog b/ChangeLog index a05fc322df1..5bf5f982a3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +Mon Nov 29 15:43:12 UTC 2004 Martin Corino <mcorino@remedy.nl> + + * performance-tests/SCTP/Options_Manager.h: + * performance-tests/SCTP/Options_Manager.cpp: + * performance-tests/SCTP/SOCK_SEQPACK_srv.cpp: + * performance-tests/SCTP/SOCK_SEQPACK_clt.cpp: + * performance-tests/SCTP/SOCK_STREAM_srv.cpp: + * performance-tests/SCTP/SOCK_STREAM_clt.cpp: + Fixed problems with use of iostreams for + ACE_LACKS_IOSTREAM_TOTALLY builds (VxWorks DIAB). + Mon Nov 29 07:04:58 2004 Chad Elliott <elliott_c@ociweb.com> * bin/MakeProjectCreator/templates/gnu.mpd: diff --git a/performance-tests/SCTP/Options_Manager.cpp b/performance-tests/SCTP/Options_Manager.cpp index b386f939d72..6d28a393fdf 100644 --- a/performance-tests/SCTP/Options_Manager.cpp +++ b/performance-tests/SCTP/Options_Manager.cpp @@ -456,88 +456,86 @@ Options_Manager::Options_Manager(int argc, ACE_TCHAR **argv, ACE_TCHAR const * c } } -void Options_Manager::_show_usage(ostream& out, ACE_TCHAR const * const opts_set) +void Options_Manager::_show_usage(FILE* out, ACE_TCHAR const * const opts_set) { // Show usage message. KEEP THE DEFAULTS DISPLAYED HERE IN SYNC // WITH THE DEFAULTS SET AT THE BEGINNING OF THE CONSTRUCTOR. - out << __program_name << " - Measures round trip latency statistics of ACE synchronous" << endl; + ACE_OS::fprintf (out, "%s - Measures round trip latency statistics of ACE synchronous\n", __program_name); // indent past program name for (unsigned int i=0;i<ACE_OS::strlen(__program_name);++i) - out << " "; + ACE_OS::fprintf (out, " "); if (ACE_OS::strstr(__program_name, ACE_TEXT ("SOCK_STREAM_clt")) || ACE_OS::strstr(__program_name, ACE_TEXT ("SOCK_STREAM_srv")) ) { - out << " messaging (SOCK_Stream) using unmarshalled ACE_CDR::Octet." << endl; + ACE_OS::fprintf (out, " messaging (SOCK_Stream) using unmarshalled ACE_CDR::Octet.\n"); } else { - out << " messaging (SOCK_SEQPACK) using unmarshalled ACE_CDR::Octet." << endl; + ACE_OS::fprintf (out, " messaging (SOCK_SEQPACK) using unmarshalled ACE_CDR::Octet.\n"); } - out << "USAGE: " << __program_name << " [ -<flag> [<val>] | --<name> [<val>] ]..." << endl; - - out << endl; + ACE_OS::fprintf (out, "USAGE: %s [ -<flag> [<val>] | --<name> [<val>] ]...\n\n", __program_name); if (!ACE_OS::strcmp (ACE_TEXT ("client-opts"), opts_set)){ - out << " Flag Args Option-Name Default" << endl; - out << " -c int test-iterations 1000000" << endl; - out << " -n none test-enable-nagle NO NAGLING" << endl; + ACE_OS::fprintf (out, " Flag Args Option-Name Default\n" + " -c int test-iterations 1000000\n" + " -n none test-enable-nagle NO NAGLING\n"); if (ACE_OS::strstr(__program_name, ACE_TEXT ("SOCK_STREAM_clt"))) { - out << " -t str (sctp|tcp) test-transport-protocol sctp" << endl; + ACE_OS::fprintf (out, " -t str (sctp|tcp) test-transport-protocol sctp\n"); } - out << endl; + ACE_OS::fprintf (out, "\n"); - out << " -m dbl histogram-min-bin 0" << endl; - out << " -M dbl histogram-max-bin 10000" << endl; - out << " -x int histogram-num-outliers 100" << endl; - out << " -b int histogram-bin-count 1000" << endl; + ACE_OS::fprintf (out, " -m dbl histogram-min-bin 0\n" + " -M dbl histogram-max-bin 10000\n" + " -x int histogram-num-outliers 100\n" + " -b int histogram-bin-count 1000\n"); - out << endl; + ACE_OS::fprintf (out, "\n"); - out << " -C int client-port assigned by kernel" << endl; - out << " -i str client-connect-addr INADDR_ANY" << endl; + ACE_OS::fprintf (out, " -C int client-port assigned by kernel\n" + " -i str client-connect-addr INADDR_ANY\n"); - out << endl; + ACE_OS::fprintf (out, "\n"); - out << " -p int server-port 45453" << endl; - out << " -H str server-host localhost" << endl; + ACE_OS::fprintf (out, " -p int server-port 45453\n" + " -H str server-host localhost\n"); - out << endl; + ACE_OS::fprintf (out, "\n"); - out << " -s int (0-16) payload-size-power-of-2 <MUST SET VALUE>" << endl; + ACE_OS::fprintf (out, " -s int (0-16) payload-size-power-of-2 <MUST SET VALUE>\n"); - out << endl; + ACE_OS::fprintf (out, "\n"); - out << " -h none help" << endl; + ACE_OS::fprintf (out, " -h none help\n"); - out << endl; + ACE_OS::fprintf (out, "\n"); } else if (!ACE_OS::strcmp(ACE_TEXT ("server-opts"), opts_set)){ - out << " Flag Args Option-Name Default" << endl; - out << " -n none test-enable-nagle NO NAGLING" << endl; + ACE_OS::fprintf (out, " Flag Args Option-Name Default\n" + " -n none test-enable-nagle NO NAGLING\n"); if (ACE_OS::strstr(__program_name, ACE_TEXT ("SOCK_STREAM_srv"))) { - out << " -t str (sctp|tcp) test-transport-protocol sctp" << endl; + ACE_OS::fprintf (out, " -t str (sctp|tcp) test-transport-protocol sctp\n"); } - out << endl; + ACE_OS::fprintf (out, "\n"); - out << " -p int server-port 45453" << endl; + ACE_OS::fprintf (out, " -p int server-port 45453\n"); if (ACE_OS::strstr(__program_name, ACE_TEXT ("SOCK_SEQPACK_srv"))) { - out << " -a w.x.y.z,a.b.c.d,... server-accept-addr INADDR_ANY" << endl; - out << " (comma-separated " << endl; - out << " list of one or more " << endl; - out << " addresses) " << endl; + ACE_OS::fprintf (out, " -a w.x.y.z,a.b.c.d,... server-accept-addr INADDR_ANY\n" + " (comma-separated \n" + " list of one or more \n" + " addresses) \n"); } else { - out << " -a w.x.y.z server-accept-addr INADDR_ANY" << endl; + ACE_OS::fprintf (out, " -a w.x.y.z server-accept-addr INADDR_ANY\n"); } - out << " -h none help" << endl; + ACE_OS::fprintf (out, " -h none help\n"); - out << endl; + ACE_OS::fprintf (out, "\n"); } else { - out << "Invalid options set specified." << endl; + ACE_OS::fprintf (out, "Invalid options set specified.\n"); } return; diff --git a/performance-tests/SCTP/Options_Manager.h b/performance-tests/SCTP/Options_Manager.h index 2b9b8b3b7d3..7fbcc2dbfcc 100644 --- a/performance-tests/SCTP/Options_Manager.h +++ b/performance-tests/SCTP/Options_Manager.h @@ -13,6 +13,7 @@ #endif #include "ace/streams.h" +#include "ace/OS_NS_stdio.h" class Options_Manager { @@ -55,7 +56,7 @@ public: static const ACE_TCHAR* _error_message; static ACE_CDR::UShort _usage; - void _show_usage(ostream& out, ACE_TCHAR const * const opts_set); + void _show_usage(FILE* out, ACE_TCHAR const * const opts_set); private: static ACE_CDR::Boolean __initialized; diff --git a/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp b/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp index ebb8a0defa5..65194b744e4 100644 --- a/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp +++ b/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp @@ -49,7 +49,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){ // show usage is requested if (optsMgr._usage) { - optsMgr._show_usage(cerr, ACE_TEXT ("client-opts")); + optsMgr._show_usage(stderr, ACE_TEXT ("client-opts")); return 1; } @@ -61,7 +61,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){ // check that valid options were specified if (optsMgr._error) { - cerr << "ERROR: " << ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message) << endl; + ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message)); return 1; } diff --git a/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp b/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp index c18ec8e5300..f489565e8c9 100644 --- a/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp +++ b/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp @@ -218,7 +218,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){ // show usage is requested if (optsMgr._usage) { - optsMgr._show_usage(cerr, ACE_TEXT ("server-opts")); + optsMgr._show_usage(stderr, ACE_TEXT ("server-opts")); return 1; } @@ -231,7 +231,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){ // check that valid options were specified if (optsMgr._error) { - cerr << "ERROR: " << ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message) << endl; + ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message)); return 1; } diff --git a/performance-tests/SCTP/SOCK_STREAM_clt.cpp b/performance-tests/SCTP/SOCK_STREAM_clt.cpp index 9437f08726d..cdfaad05db2 100644 --- a/performance-tests/SCTP/SOCK_STREAM_clt.cpp +++ b/performance-tests/SCTP/SOCK_STREAM_clt.cpp @@ -50,7 +50,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){ // show usage if requested if (optsMgr._usage) { - optsMgr._show_usage(cerr, ACE_TEXT ("client-opts")); + optsMgr._show_usage(stderr, ACE_TEXT ("client-opts")); return 1; } @@ -65,7 +65,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){ // check that valid options were specified if (optsMgr._error) { - cerr << "ERROR: " << ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message) << endl; + ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message)); return 1; } diff --git a/performance-tests/SCTP/SOCK_STREAM_srv.cpp b/performance-tests/SCTP/SOCK_STREAM_srv.cpp index 3c40f7a8ba0..d6b1486e364 100644 --- a/performance-tests/SCTP/SOCK_STREAM_srv.cpp +++ b/performance-tests/SCTP/SOCK_STREAM_srv.cpp @@ -227,7 +227,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){ // show usage is requested if (optsMgr._usage) { - optsMgr._show_usage(cerr, ACE_TEXT ("server-opts")); + optsMgr._show_usage(stderr, ACE_TEXT ("server-opts")); return 1; } @@ -244,7 +244,7 @@ int ACE_TMAIN (int argc, ACE_TCHAR **argv){ // check that valid options were specified if (optsMgr._error) { - cerr << "ERROR: " << ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message) << endl; + ACE_OS::fprintf (stderr, "ERROR: %s\n", ACE_TEXT_ALWAYS_CHAR (optsMgr._error_message)); return 1; } |