From 7f85c993838c264c5132ae71d3c559e7f293cd81 Mon Sep 17 00:00:00 2001 From: gthaker Date: Wed, 29 Jan 2003 22:53:57 +0000 Subject: Added new client-side options: -C for client port and -i for client interface. Removed letter 'l' that was showing up in the histogram title. --- performance-tests/SCTP/SOCK_STREAM_clt.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/performance-tests/SCTP/SOCK_STREAM_clt.cpp b/performance-tests/SCTP/SOCK_STREAM_clt.cpp index a66799c9d6a..7deb3397a16 100644 --- a/performance-tests/SCTP/SOCK_STREAM_clt.cpp +++ b/performance-tests/SCTP/SOCK_STREAM_clt.cpp @@ -70,6 +70,10 @@ int main(int argc, char **argv){ ACE_INET_Addr serverAddr(Options_Manager::server_port, Options_Manager::server_host); + // Create the address that we want the client to connect FROM + ACE_INET_Addr clientAddr(Options_Manager::client_port, + Options_Manager::client_connect_addr); + // object that manages the connection to the server ACE_SOCK_Connector connector; @@ -79,7 +83,7 @@ int main(int argc, char **argv){ // connect to the server if (connector.connect (dataStream, serverAddr, - 0,ACE_Addr::sap_any, 0, 0, 0, // ALL DEFAULT ARGUMENTS + 0,clientAddr, 0, 0, 0, // ALL DEFAULT ARGUMENTS Options_Manager::test_transport_protocol) == -1) ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p\n", @@ -110,7 +114,7 @@ HIST createHistogram(ACE_CDR::ULong messageSize){ // memory leak. char * histName = (char *) malloc(200); - sprintf(histName, "%s Unmarshalled Msg Synchronous Latency Test\n\t\t\t\t\t(Message Size %ul, Message Type octet)", + sprintf(histName, "%s Unmarshalled Msg Synchronous Latency Test\n\t\t\t\t\t(Message Size %u, Message Type octet)", "ACE", messageSize); // actually create the histogram -- cgit v1.2.1