summaryrefslogtreecommitdiff
path: root/ACE/tests/Reactor_Performance_Test.h
diff options
context:
space:
mode:
Diffstat (limited to 'ACE/tests/Reactor_Performance_Test.h')
-rw-r--r--ACE/tests/Reactor_Performance_Test.h58
1 files changed, 30 insertions, 28 deletions
diff --git a/ACE/tests/Reactor_Performance_Test.h b/ACE/tests/Reactor_Performance_Test.h
index bde943c2951..139752c9090 100644
--- a/ACE/tests/Reactor_Performance_Test.h
+++ b/ACE/tests/Reactor_Performance_Test.h
@@ -1,24 +1,20 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// tests
-//
-// = FILENAME
-// Reactor_Performance_Test.h
-//
-// = DESCRIPTION
-// This file includes template class definitions for the
-// Reactor_Performance_Test.cpp program. This class gets its own
-// header file to work around AIX C++ compiler "features" related
-// to template instantiation...
-//
-// = AUTHOR
-// Irfan Pyarali <irfan@cs.wustl.edu> and
-// Steve Huston <shuston@riverace.com>
-//
-// ============================================================================
+
+//=============================================================================
+/**
+ * @file Reactor_Performance_Test.h
+ *
+ * $Id$
+ *
+ * This file includes template class definitions for the
+ * Reactor_Performance_Test.cpp program. This class gets its own
+ * header file to work around AIX C++ compiler "features" related
+ * to template instantiation...
+ *
+ *
+ * @author Irfan Pyarali <irfan@cs.wustl.edu> and Steve Huston <shuston@riverace.com>
+ */
+//=============================================================================
+
#ifndef ACE_TESTS_REACTOR_PERFORMANCE_TEST_H
#define ACE_TESTS_REACTOR_PERFORMANCE_TEST_H
@@ -31,29 +27,35 @@
#include "ace/Svc_Handler.h"
+/**
+ * @class Read_Handler
+ *
+ * @brief Simple class for reading in the data
+ */
class Read_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_SYNCH>
{
- // = TITLE
- // Simple class for reading in the data
public:
static void set_countdown (int nconnections);
+ /// The Svc_Handler callbacks.
virtual int open (void *);
virtual int handle_input (ACE_HANDLE h);
virtual int handle_close (ACE_HANDLE handle,
ACE_Reactor_Mask close_mask);
- // The Svc_Handler callbacks.
private:
+ /// How many connections are we waiting for.
static int waiting_;
- // How many connections are we waiting for.
};
+/**
+ * @class Write_Handler
+ *
+ * @brief This Svc_Handler simply connects to a server and sends some
+ * output to it. Its purpose is to feed the test.
+ */
class Write_Handler : public ACE_Svc_Handler<ACE_SOCK_STREAM, ACE_SYNCH>
{
- // = TITLE
- // This Svc_Handler simply connects to a server and sends some
- // output to it. Its purpose is to feed the test.
public:
virtual int open (void *);
virtual int send_data (void);