summaryrefslogtreecommitdiff
path: root/examples/IOStream
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-06 17:06:06 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-02-06 17:06:06 +0000
commit9d2d5d5b06bf7db18acc1b79975da5fb5095daf6 (patch)
treeb1b4e103733d2cacdb12205e7bc84764aa0fcea5 /examples/IOStream
parent7fcd8dd7ca3f7ae384c52bf9ff9d9592323c54ea (diff)
downloadATCD-9d2d5d5b06bf7db18acc1b79975da5fb5095daf6.tar.gz
reordered args and fixed argv indexes
Diffstat (limited to 'examples/IOStream')
-rw-r--r--examples/IOStream/client/iostream_client.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/IOStream/client/iostream_client.cpp b/examples/IOStream/client/iostream_client.cpp
index 0b3d983e73e..b18dd87c550 100644
--- a/examples/IOStream/client/iostream_client.cpp
+++ b/examples/IOStream/client/iostream_client.cpp
@@ -3,8 +3,8 @@
int main (int argc, char *argv[])
{
- u_short server_port = argc > 1 ? ACE_OS::atoi (argv[2]) : ACE_DEFAULT_SERVER_PORT;
- char *server_host = argc > 2 ? argv[3] : ACE_DEFAULT_SERVER_HOST;
+ char *server_host = argc > 1 ? argv[1] : ACE_DEFAULT_SERVER_HOST;
+ u_short server_port = argc > 2 ? ACE_OS::atoi (argv[2]) : ACE_DEFAULT_SERVER_PORT;
ACE_IOStream<ACE_SOCK_Stream> server;
ACE_SOCK_Connector connector;