summaryrefslogtreecommitdiff
path: root/examples/C++NPv2/Client_Logging_Daemon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/C++NPv2/Client_Logging_Daemon.cpp')
-rw-r--r--examples/C++NPv2/Client_Logging_Daemon.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/C++NPv2/Client_Logging_Daemon.cpp b/examples/C++NPv2/Client_Logging_Daemon.cpp
index 5fc0d554cbd..b4802b0acb7 100644
--- a/examples/C++NPv2/Client_Logging_Daemon.cpp
+++ b/examples/C++NPv2/Client_Logging_Daemon.cpp
@@ -177,7 +177,7 @@ ACE_THR_FUNC_RETURN CLD_Handler::forward () {
}
if (message_index >= ACE_IOV_MAX ||
(ACE_OS::gettimeofday () - time_of_last_send
- >= ACE_Time_Value(FLUSH_TIMEOUT))) {
+ >= FLUSH_TIMEOUT)) {
if (send (chunk, message_index) == -1) break;
time_of_last_send = ACE_OS::gettimeofday ();
}
@@ -336,13 +336,13 @@ int Client_Logging_Daemon::init (int argc, ACE_TCHAR *argv[]) {
ACE_TCHAR sld_host[MAXHOSTNAMELEN];
ACE_OS::strcpy (sld_host, ACE_LOCALHOST);
- ACE_Get_Opt get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
+ ACE_Get_Arg_Opt<ACE_TCHAR> get_opt (argc, argv, ACE_TEXT ("p:r:s:"), 0);
get_opt.long_option (ACE_TEXT ("client_port"), 'p',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt.long_option (ACE_TEXT ("server_port"), 'r',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
get_opt.long_option (ACE_TEXT ("server_name"), 's',
- ACE_Get_Opt::ARG_REQUIRED);
+ ACE_Get_Arg_Opt<ACE_TCHAR>::ARG_REQUIRED);
for (int c; (c = get_opt ()) != -1;)
switch (c) {