summaryrefslogtreecommitdiff
path: root/apps/Gateway
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-26 15:46:44 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>2001-12-26 15:46:44 +0000
commitc13d83545ee97972e556b1fdc6eb81c318435f76 (patch)
tree3e074e160a2e59a236f10781cfcb0e071b49fac8 /apps/Gateway
parent5a4937548f54d003dc238b834281b3f3b43067dd (diff)
downloadATCD-c13d83545ee97972e556b1fdc6eb81c318435f76.tar.gz
ChangeLogTag:Wed Dec 26 09:07:45 2001 Douglas C. Schmidt <schmidt@ace.cs.wustl.edu>
Diffstat (limited to 'apps/Gateway')
-rw-r--r--apps/Gateway/Gateway/Options.cpp14
-rw-r--r--apps/Gateway/Peer/Options.cpp12
2 files changed, 13 insertions, 13 deletions
diff --git a/apps/Gateway/Gateway/Options.cpp b/apps/Gateway/Gateway/Options.cpp
index a5edd01fdb9..d13848835bf 100644
--- a/apps/Gateway/Gateway/Options.cpp
+++ b/apps/Gateway/Gateway/Options.cpp
@@ -183,7 +183,7 @@ Options::parse_args (int argc, char *argv[])
{
// Become an Acceptor.
- for (char *flag = ACE_OS::strtok (get_opt.optarg, "|");
+ for (char *flag = ACE_OS::strtok (get_opt.opt_arg (), "|");
flag != 0;
flag = ACE_OS::strtok (0, "|"))
if (ACE_OS::strncasecmp (flag, "C", 1) == 0)
@@ -210,7 +210,7 @@ Options::parse_args (int argc, char *argv[])
break;
case 'C': // Use a different proxy config filename.
ACE_OS::strncpy (this->consumer_config_file_,
- get_opt.optarg,
+ get_opt.opt_arg (),
sizeof this->consumer_config_file_
/ sizeof (ACE_TCHAR));
break;
@@ -218,7 +218,7 @@ Options::parse_args (int argc, char *argv[])
{
// Become a Connector.
- for (char *flag = ACE_OS::strtok (get_opt.optarg, "|");
+ for (char *flag = ACE_OS::strtok (get_opt.opt_arg (), "|");
flag != 0;
flag = ACE_OS::strtok (0, "|"))
if (ACE_OS::strncasecmp (flag, "C", 1) == 0)
@@ -246,15 +246,15 @@ Options::parse_args (int argc, char *argv[])
break;
case 'P': // Use a different connection config filename.
ACE_OS::strncpy (this->connection_config_file_,
- get_opt.optarg,
+ get_opt.opt_arg (),
sizeof this->connection_config_file_);
break;
case 'q': // Use a different socket queue size.
- this->socket_queue_size_ = ACE_OS::atoi (get_opt.optarg);
+ this->socket_queue_size_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
case 't': // Use a different threading strategy.
{
- for (char *flag = ACE_OS::strtok (get_opt.optarg, "|");
+ for (char *flag = ACE_OS::strtok (get_opt.opt_arg (), "|");
flag != 0;
flag = ACE_OS::strtok (0, "|"))
if (ACE_OS::strcmp (flag, "OUTPUT_MT") == 0)
@@ -270,7 +270,7 @@ Options::parse_args (int argc, char *argv[])
Options::VERBOSE);
break;
case 'w': // Time performance for a designated amount of time.
- this->performance_window_ = ACE_OS::atoi (get_opt.optarg);
+ this->performance_window_ = ACE_OS::atoi (get_opt.opt_arg ());
// Use blocking connection semantics so that we get accurate
// timings (since all connections start at once).
this->blocking_semantics_ = 0;
diff --git a/apps/Gateway/Peer/Options.cpp b/apps/Gateway/Peer/Options.cpp
index 80c0256b619..e4c5842c696 100644
--- a/apps/Gateway/Peer/Options.cpp
+++ b/apps/Gateway/Peer/Options.cpp
@@ -114,7 +114,7 @@ Options::parse_args (int argc, char *argv[])
{
// Become an Acceptor.
- for (char *flag = ACE_OS::strtok (get_opt.optarg, "|");
+ for (char *flag = ACE_OS::strtok (get_opt.opt_arg (), "|");
flag != 0;
flag = ACE_OS::strtok (0, "|"))
if (ACE_OS::strncasecmp (flag, "C", 1) == 0)
@@ -140,7 +140,7 @@ Options::parse_args (int argc, char *argv[])
{
// Become a Connector.
- for (char *flag = ACE_OS::strtok (get_opt.optarg, "|");
+ for (char *flag = ACE_OS::strtok (get_opt.opt_arg (), "|");
flag != 0;
flag = ACE_OS::strtok (0, "|"))
if (ACE_OS::strncasecmp (flag, "C", 1) == 0)
@@ -163,22 +163,22 @@ Options::parse_args (int argc, char *argv[])
break;
/* NOTREACHED */
case 'C':
- this->connection_id_ = ACE_OS::atoi (get_opt.optarg);
+ this->connection_id_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
/* NOTREACHED */
case 'h':
// connector host
- this->connector_host_ = get_opt.optarg;
+ this->connector_host_ = get_opt.opt_arg ();
break;
/* NOTREACHED */
case 'm':
// max queue size.
- this->max_queue_size_ = ACE_OS::atoi (get_opt.optarg);
+ this->max_queue_size_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
/* NOTREACHED */
case 't':
// Timeout
- this->timeout_ = ACE_OS::atoi (get_opt.optarg);
+ this->timeout_ = ACE_OS::atoi (get_opt.opt_arg ());
break;
/* NOTREACHED */
case 'v':