summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-01-29 22:53:18 +0000
committergthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-01-29 22:53:18 +0000
commit6c4194ad0c23c85437bc0ef9c766a6d638ea1df0 (patch)
tree7ca6d0b4da61367ae203b8e0edc18114aa9e2efb
parentcbcee7104585e33b0d45adf55ea2e548197f1c53 (diff)
downloadATCD-6c4194ad0c23c85437bc0ef9c766a6d638ea1df0.tar.gz
Added new client-side options: -C for client port and -i for client
interface(s). Removed letter 'l' that was showing up in the histogram title.
-rw-r--r--performance-tests/SCTP/SOCK_SEQPACK_clt.cpp12
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