summaryrefslogtreecommitdiff
path: root/ACE/examples/Reactor/WFMO_Reactor/Handle_Close.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/examples/Reactor/WFMO_Reactor/Handle_Close.cpp')
-rw-r--r--ACE/examples/Reactor/WFMO_Reactor/Handle_Close.cpp42
1 files changed, 19 insertions, 23 deletions
diff --git a/ACE/examples/Reactor/WFMO_Reactor/Handle_Close.cpp b/ACE/examples/Reactor/WFMO_Reactor/Handle_Close.cpp
index c90e1f5bcb8..2d0fd1077fb 100644
--- a/ACE/examples/Reactor/WFMO_Reactor/Handle_Close.cpp
+++ b/ACE/examples/Reactor/WFMO_Reactor/Handle_Close.cpp
@@ -1,24 +1,20 @@
-// $Id$
-//
-// ============================================================================
-//
-// = LIBRARY
-// examples
-//
-// = FILENAME
-// Handle_Close.cpp
-//
-// = DESCRIPTION
-//
-// This application tests whether handle_close gets called and if
-// the correct masks are passed along. The handler should get
-// handle_close called for all three masks (READ, WRITE, and
-// EXCEPT).
-//
-// = AUTHOR
-// Irfan Pyarali
-//
-// ============================================================================
+//=============================================================================
+/**
+ * @file Handle_Close.cpp
+ *
+ * $Id$
+ *
+ *
+ * This application tests whether handle_close gets called and if
+ * the correct masks are passed along. The handler should get
+ * handle_close called for all three masks (READ, WRITE, and
+ * EXCEPT).
+ *
+ *
+ * @author Irfan Pyarali
+ */
+//=============================================================================
+
#include "ace/Get_Opt.h"
#include "ace/Reactor.h"
@@ -28,7 +24,7 @@
#include "ace/Pipe.h"
#include "ace/OS_main.h"
-ACE_RCSID(WFMO_Reactor, Handle_Close, "$Id: ")
+
// Use the WFMO_Reactor
static int opt_wfmo_reactor = 0;
@@ -47,7 +43,7 @@ static int cancel_reads = 0;
void
write_to_pipe (ACE_Pipe &pipe)
{
- char *data = "hello";
+ const char *data = "hello";
size_t len = ACE_OS::strlen (data);
ssize_t result = ACE::send (pipe.write_handle (),