summaryrefslogtreecommitdiff
path: root/examples/C++NPv1
diff options
context:
space:
mode:
authordhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-11-01 11:15:26 +0000
committerdhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-11-01 11:15:26 +0000
commit746f4ee6169d6cd8d8e5f8d6b3b368d3ac128ac6 (patch)
tree9a2cd7fff6f9e796968703bf3bb2cb7ca5c5bf82 /examples/C++NPv1
parenta288d4fc55907205181362fee9979dc5cd9b9d07 (diff)
downloadATCD-746f4ee6169d6cd8d8e5f8d6b3b368d3ac128ac6.tar.gz
ChangeLogTag:Sat Nov 1 05:40:21 UTC 2003 Don Hinton <dhinton@dresystems.com>
Diffstat (limited to 'examples/C++NPv1')
-rw-r--r--examples/C++NPv1/Logging_Client.cpp2
-rw-r--r--examples/C++NPv1/Logging_Handler.cpp2
-rw-r--r--examples/C++NPv1/Logging_Server.cpp6
-rw-r--r--examples/C++NPv1/Reactive_Logging_Server_Ex.h2
4 files changed, 7 insertions, 5 deletions
diff --git a/examples/C++NPv1/Logging_Client.cpp b/examples/C++NPv1/Logging_Client.cpp
index d3308ea649e..2a542ba9f4a 100644
--- a/examples/C++NPv1/Logging_Client.cpp
+++ b/examples/C++NPv1/Logging_Client.cpp
@@ -4,7 +4,7 @@
** Copyright 2001 Addison Wesley. All Rights Reserved.
*/
-#include "ace/OS.h"
+#include "ace/OS_NS_sys_time.h"
#include "ace/CDR_Stream.h"
#include "ace/INET_Addr.h"
#include "ace/SOCK_Connector.h"
diff --git a/examples/C++NPv1/Logging_Handler.cpp b/examples/C++NPv1/Logging_Handler.cpp
index 002958f028e..a1bcb5851fd 100644
--- a/examples/C++NPv1/Logging_Handler.cpp
+++ b/examples/C++NPv1/Logging_Handler.cpp
@@ -12,7 +12,7 @@
#include "Logging_Handler.h"
#include "ace/streams.h"
-
+#include "ace/os_include/os_netdb.h"
int operator>> (ACE_InputCDR &cdr, ACE_Log_Record &log_record)
{
diff --git a/examples/C++NPv1/Logging_Server.cpp b/examples/C++NPv1/Logging_Server.cpp
index ec4317a6d97..c685412c769 100644
--- a/examples/C++NPv1/Logging_Server.cpp
+++ b/examples/C++NPv1/Logging_Server.cpp
@@ -10,6 +10,8 @@
#include "ace/INET_Addr.h"
#include "ace/SOCK_Stream.h"
#include "Logging_Server.h"
+#include "ace/OS_NS_string.h"
+#include "ace/os_include/os_netdb.h"
int Logging_Server::run (int argc, char *argv[])
{
@@ -56,10 +58,10 @@ int Logging_Server::make_log_file (ACE_FILE_IO &logging_file,
ACE_INET_Addr logging_peer_addr;
logging_peer->get_remote_addr (logging_peer_addr);
logging_peer_addr.get_host_name (filename, MAXHOSTNAMELEN);
- strcat (filename, ".log");
+ ACE_OS::strcat (filename, ".log");
}
else
- strcpy (filename, "logging_server.log");
+ ACE_OS::strcpy (filename, "logging_server.log");
ACE_FILE_Connector connector;
return connector.connect (logging_file,
diff --git a/examples/C++NPv1/Reactive_Logging_Server_Ex.h b/examples/C++NPv1/Reactive_Logging_Server_Ex.h
index 371190f8f75..ad9724df3a4 100644
--- a/examples/C++NPv1/Reactive_Logging_Server_Ex.h
+++ b/examples/C++NPv1/Reactive_Logging_Server_Ex.h
@@ -15,9 +15,9 @@
#include "ace/Log_Record.h"
#include "ace/SOCK_Acceptor.h"
#include "ace/SOCK_Stream.h"
-#include "ace/Synch.h"
#include "Logging_Server.h"
#include "Logging_Handler.h"
+#include "ace/Null_Mutex.h"
typedef ACE_Hash_Map_Manager<ACE_HANDLE,
ACE_FILE_IO *,