summaryrefslogtreecommitdiff
path: root/performance-tests
diff options
context:
space:
mode:
authorgthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-01-29 22:53:57 +0000
committergthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-01-29 22:53:57 +0000
commit7f85c993838c264c5132ae71d3c559e7f293cd81 (patch)
tree1743ffba35dc04235699616c430420144eb926a3 /performance-tests
parent6c4194ad0c23c85437bc0ef9c766a6d638ea1df0 (diff)
downloadATCD-7f85c993838c264c5132ae71d3c559e7f293cd81.tar.gz
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.
Diffstat (limited to 'performance-tests')
-rw-r--r--performance-tests/SCTP/SOCK_STREAM_clt.cpp8
1 files 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