diff options
Diffstat (limited to 'performance-tests/SCTP/SOCK_SEQPACK_clt.cpp')
-rw-r--r-- | performance-tests/SCTP/SOCK_SEQPACK_clt.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp b/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp index 61b14fa3494..c2f8921a3df 100644 --- a/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp +++ b/performance-tests/SCTP/SOCK_SEQPACK_clt.cpp @@ -67,6 +67,14 @@ 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_Multihomed_INET_Addr clientAddr; + clientAddr.set(optsMgr.client_port, + optsMgr.client_connect_addr, + 1, + optsMgr.secondary_connect_addrs, + optsMgr.num_secondary_connect_addrs); + // object that manages the connection to the server ACE_SOCK_SEQPACK_Connector connector; @@ -76,7 +84,7 @@ int main(int argc, char **argv){ // connect to the server if (connector.connect (dataStream, serverAddr, - 0,ACE_Addr::sap_any, 0, 0, 0, optsMgr.test_transport_protocol) == -1) /*, // ALL DEFAULT ARGUMENTS + 0,clientAddr, 0, 0, 0, optsMgr.test_transport_protocol) == -1) /*, // ALL DEFAULT ARGUMENTS Options_Manager::test_transport_protocol) == -1) */ ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) %p\n", @@ -107,7 +115,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 |