summaryrefslogtreecommitdiff
path: root/examples/IOStream/client/iostream_client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/IOStream/client/iostream_client.cpp')
-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;