diff options
Diffstat (limited to 'examples/IPC_SAP')
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp | 14 | ||||
-rw-r--r-- | examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp | 4 | ||||
-rw-r--r-- | examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp | 12 | ||||
-rw-r--r-- | examples/IPC_SAP/SSL_SAP/SSL-client.cpp | 14 | ||||
-rw-r--r-- | examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp | 4 |
5 files changed, 24 insertions, 24 deletions
diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp index 673cdd8caeb..98c01c2bfae 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-inclient.cpp @@ -122,28 +122,28 @@ Options::parse_args (int argc, ACE_TCHAR *argv[]) this->oneway_ = 0; break; case 'h': - this->host_ = getopt.optarg; + this->host_ = getopt.opt_arg (); break; case 'i': - this->iterations_ = ACE_OS::atoi (getopt.optarg); + this->iterations_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'm': - this->message_len_ = ACE_OS::atoi (getopt.optarg); + this->message_len_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'p': - this->port_ = ACE_OS::atoi (getopt.optarg); + this->port_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'q': - this->quit_string_ = getopt.optarg; + this->quit_string_ = getopt.opt_arg (); break; case 's': this->io_source_ = ACE_STDIN; break; case 't': - this->threads_ = (size_t) ACE_OS::atoi (getopt.optarg); + this->threads_ = (size_t) ACE_OS::atoi (getopt.opt_arg ()); break; case 'T': - this->sleep_time_.set (0, ACE_OS::atoi (getopt.optarg)); + this->sleep_time_.set (0, ACE_OS::atoi (getopt.opt_arg ())); break; default: ACE_ERROR_RETURN ((LM_ERROR, diff --git a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp index d928608a7b5..c4d6d46cfa2 100644 --- a/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp +++ b/examples/IPC_SAP/SOCK_SAP/CPP-inserver-fancy.cpp @@ -168,10 +168,10 @@ Options::parse_args (int argc, ACE_TCHAR *argv[]) switch (c) { case 'p': - this->port_ = ACE_OS::atoi (getopt.optarg); + this->port_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'r': - this->reply_message_len_ = ACE_OS::atoi (getopt.optarg); + this->reply_message_len_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'v': this->verbose_ = 1; diff --git a/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp b/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp index f82b930dd10..b998c1322a5 100644 --- a/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp +++ b/examples/IPC_SAP/SSL_SAP/SSL-client-simple.cpp @@ -107,25 +107,25 @@ Options::parse_args (int argc, char *argv[]) this->oneway_ = 0; break; case 'h': - this->host_ = getopt.optarg; + this->host_ = getopt.opt_arg (); break; case 'i': - this->iterations_ = ACE_OS::atoi (getopt.optarg); + this->iterations_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'm': - this->message_len_ = ACE_OS::atoi (getopt.optarg); + this->message_len_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'p': - this->port_ = ACE_OS::atoi (getopt.optarg); + this->port_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'q': - this->quit_string_ = getopt.optarg; + this->quit_string_ = getopt.opt_arg (); break; case 's': this->io_source_ = ACE_STDIN; break; case 'T': - this->sleep_time_.set (0, ACE_OS::atoi (getopt.optarg)); + this->sleep_time_.set (0, ACE_OS::atoi (getopt.opt_arg ())); break; default: ACE_ERROR_RETURN ((LM_ERROR, diff --git a/examples/IPC_SAP/SSL_SAP/SSL-client.cpp b/examples/IPC_SAP/SSL_SAP/SSL-client.cpp index 84781c6f80c..966292d0d9d 100644 --- a/examples/IPC_SAP/SSL_SAP/SSL-client.cpp +++ b/examples/IPC_SAP/SSL_SAP/SSL-client.cpp @@ -118,28 +118,28 @@ Options::parse_args (int argc, char *argv[]) this->oneway_ = 0; break; case 'h': - this->host_ = getopt.optarg; + this->host_ = getopt.opt_arg (); break; case 'i': - this->iterations_ = ACE_OS::atoi (getopt.optarg); + this->iterations_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'm': - this->message_len_ = ACE_OS::atoi (getopt.optarg); + this->message_len_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'p': - this->port_ = ACE_OS::atoi (getopt.optarg); + this->port_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'q': - this->quit_string_ = getopt.optarg; + this->quit_string_ = getopt.opt_arg (); break; case 's': this->io_source_ = ACE_STDIN; break; case 't': - this->threads_ = (size_t) ACE_OS::atoi (getopt.optarg); + this->threads_ = (size_t) ACE_OS::atoi (getopt.opt_arg ()); break; case 'T': - this->sleep_time_.set (0, ACE_OS::atoi (getopt.optarg)); + this->sleep_time_.set (0, ACE_OS::atoi (getopt.opt_arg ())); break; default: ACE_ERROR_RETURN ((LM_ERROR, diff --git a/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp b/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp index 4acc024fa64..d50a6366abb 100644 --- a/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp +++ b/examples/IPC_SAP/SSL_SAP/SSL-server-fancy.cpp @@ -179,10 +179,10 @@ Options::parse_args (int argc, char *argv[]) switch (c) { case 'p': - this->port_ = ACE_OS::atoi (getopt.optarg); + this->port_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'r': - this->reply_message_len_ = ACE_OS::atoi (getopt.optarg); + this->reply_message_len_ = ACE_OS::atoi (getopt.opt_arg ()); break; case 'v': this->verbose_ = 1; |