summaryrefslogtreecommitdiff
path: root/orbsvcs/tests/HTIOP/AMI/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'orbsvcs/tests/HTIOP/AMI/client.cpp')
-rw-r--r--orbsvcs/tests/HTIOP/AMI/client.cpp59
1 files changed, 28 insertions, 31 deletions
diff --git a/orbsvcs/tests/HTIOP/AMI/client.cpp b/orbsvcs/tests/HTIOP/AMI/client.cpp
index 872febf29b6..29025fc16a1 100644
--- a/orbsvcs/tests/HTIOP/AMI/client.cpp
+++ b/orbsvcs/tests/HTIOP/AMI/client.cpp
@@ -1,21 +1,17 @@
-// $Id$
-
-// ============================================================================
-//
-// = LIBRARY
-// TAO/tests/AMI
-//
-// = FILENAME
-// server.cpp
-//
-// = DESCRIPTION
-// A client which uses the AMI callback model.
-//
-// = AUTHOR
-// Alexander Babu Arulanthu <alex@cs.wustl.edu>,
-// Michael Kircher <Michael.Kircher@mchp.siemens.de>
-//
-// ============================================================================
+
+//=============================================================================
+/**
+ * @file client.cpp
+ *
+ * $Id$
+ *
+ * A client which uses the AMI callback model.
+ *
+ * @author Alexander Babu Arulanthu <alex@cs.wustl.edu>
+ * @author Michael Kircher <Michael.Kircher@mchp.siemens.de>
+ */
+//=============================================================================
+
#include "ace/OS_NS_sys_socket.h"
#include "ace/Get_Opt.h"
@@ -23,7 +19,7 @@
#include "ami_testC.h"
#include "ami_testS.h"
-ACE_RCSID(AMI, client, "$Id$")
+
const ACE_TCHAR *ior = ACE_TEXT("file://test.ior");
int nthreads = 5;
@@ -64,34 +60,35 @@ parse_args (int argc, ACE_TCHAR *argv[])
argv [0]),
-1);
}
- // Indicates sucessful parsing of the command line
+ // Indicates successful parsing of the command line
return 0;
}
+/**
+ * @class Client
+ *
+ * @brief Run the client thread
+ *
+ * Use the ACE_Task_Base class to run the client threads.
+ */
class Client : public ACE_Task_Base
{
- // = TITLE
- // Run the client thread
- //
- // = DESCRIPTION
- // Use the ACE_Task_Base class to run the client threads.
- //
public:
+ /// ctor
Client (A::AMI_Test_ptr server, int niterations);
- // ctor
+ /// The thread entry point.
virtual int svc (void);
- // The thread entry point.
// private:
+ /// Var for the AMI_Test object.
A::AMI_Test_var ami_test_var_;
- // Var for the AMI_Test object.
+ /// The number of iterations on each client thread.
int niterations_;
- // The number of iterations on each client thread.
+ /// Var for AMI_AMI_Test_ReplyHandler object.
A::AMI_AMI_TestHandler_var the_handler_var_;
- // Var for AMI_AMI_Test_ReplyHandler object.
};
class Handler : public POA_A::AMI_AMI_TestHandler