summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorbala <balanatarajan@users.noreply.github.com>2002-10-22 01:17:28 +0000
committerbala <balanatarajan@users.noreply.github.com>2002-10-22 01:17:28 +0000
commit73b65daf7edf8aa13c2d3d980a9174da0ad49cf5 (patch)
treedafa12dea72400871620e0f7cab94278965258fa /examples
parenteb2332e93caa54f164fd40b0de86e236a9db2aad (diff)
downloadATCD-73b65daf7edf8aa13c2d3d980a9174da0ad49cf5.tar.gz
ChangeLogTag:Mon Oct 21 20:13:27 2002 Balachandran Natarajan <bala@isis-server.isis.vanderbilt.edu>
Diffstat (limited to 'examples')
-rw-r--r--examples/C++NPv1/Logging_Server.cpp6
-rw-r--r--examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp3
-rw-r--r--examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp3
-rw-r--r--examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp3
-rw-r--r--examples/C++NPv2/Reactor_Logging_Server_T.cpp6
5 files changed, 14 insertions, 7 deletions
diff --git a/examples/C++NPv1/Logging_Server.cpp b/examples/C++NPv1/Logging_Server.cpp
index 970b4b614c1..ec4317a6d97 100644
--- a/examples/C++NPv1/Logging_Server.cpp
+++ b/examples/C++NPv1/Logging_Server.cpp
@@ -35,9 +35,11 @@ int Logging_Server::open (u_short logger_port)
int result;
if (logger_port != 0)
- result = server_addr.set (logger_port, INADDR_ANY);
+ result = server_addr.set (logger_port,
+ (ACE_UINT32) INADDR_ANY);
else
- result = server_addr.set ("ace_logger", INADDR_ANY);
+ result = server_addr.set ("ace_logger",
+ (ACE_UINT32) INADDR_ANY);
if (result == -1) return -1;
// Start listening, enable reuse of listen address for quick restarts.
diff --git a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
index f4730a7a6d0..8b5ab6388e2 100644
--- a/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
+++ b/examples/C++NPv1/Process_Per_Connection_Logging_Server.cpp
@@ -157,7 +157,8 @@ Process_Per_Connection_Logging_Server::run_worker (int, char *argv[])
int main (int argc, char *argv[])
{
// Register to receive the <SIGTERM> signal.
- ACE_Sig_Action sa (sigterm_handler, SIGTERM);
+ ACE_Sig_Action sa ((ACE_SignalHandler)sigterm_handler,
+ SIGTERM);
Process_Per_Connection_Logging_Server server;
diff --git a/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp
index d39e30f96cc..0be97237952 100644
--- a/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp
+++ b/examples/C++NPv1/RT_Thread_Per_Connection_Logging_Server.cpp
@@ -117,7 +117,8 @@ Thread_Per_Connection_Logging_Server::handle_data (ACE_SOCK_Stream *client)
int main (int argc, char *argv[])
{
// Register to receive the <SIGTERM> signal.
- ACE_Sig_Action sa (sigterm_handler, SIGTERM);
+ ACE_Sig_Action sa ((ACE_SignalHandler) sigterm_handler,
+ SIGTERM);
RT_Thread_Per_Connection_Logging_Server server;
diff --git a/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp b/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp
index 0aaebf18032..ec4389110f0 100644
--- a/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp
+++ b/examples/C++NPv1/Thread_Per_Connection_Logging_Server.cpp
@@ -78,7 +78,8 @@ Thread_Per_Connection_Logging_Server::handle_data (ACE_SOCK_Stream *client)
int main (int argc, char *argv[])
{
// Register to receive the <SIGTERM> signal.
- ACE_Sig_Action sa (sigterm_handler, SIGTERM);
+ ACE_Sig_Action sa ((ACE_SignalHandler) sigterm_handler,
+ SIGTERM);
Thread_Per_Connection_Logging_Server server;
diff --git a/examples/C++NPv2/Reactor_Logging_Server_T.cpp b/examples/C++NPv2/Reactor_Logging_Server_T.cpp
index d6d5ffb6bb1..e1cd8d26d68 100644
--- a/examples/C++NPv2/Reactor_Logging_Server_T.cpp
+++ b/examples/C++NPv2/Reactor_Logging_Server_T.cpp
@@ -15,9 +15,11 @@ Reactor_Logging_Server<ACCEPTOR>::Reactor_Logging_Server
int result;
if (logger_port != 0)
- result = server_addr.set (logger_port, INADDR_ANY);
+ result = server_addr.set (logger_port,
+ (ACE_UNIT32) INADDR_ANY);
else
- result = server_addr.set ("ace_logger", INADDR_ANY);
+ result = server_addr.set ("ace_logger",
+ (ACE_UINT32) INADDR_ANY);
if (result != -1)
result = ACCEPTOR::open (server_addr);
if (result == -1) reactor->end_reactor_event_loop ();