Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Security / MT_SSLIOP / Client_Worker.h
blobd121c34476d8a9da5a16acbd024e495794abcc2a
2 //=============================================================================
3 /**
4 * @file Client_Worker.h
6 * @author Anand Krishnan
7 */
8 //=============================================================================
11 #ifndef MT_SSLIOP_CLIENT_WORKER_H
12 #define MT_SSLIOP_CLIENT_WORKER_H
13 #include /**/ "ace/pre.h"
14 #include "ace/Task.h"
16 #if defined (_MSC_VER)
17 # pragma warning(push)
18 # pragma warning (disable:4250)
19 #endif /* _MSC_VER */
21 #include "testC.h"
24 /**
25 * @class Client_Worker
27 * @brief Run the Client_Worker Thread
29 * Use the ACE_Task_Base class to run the client threads
31 class Client_Worker : public ACE_Task_Base
34 public:
35 /// ctor
36 Client_Worker (Simple_Server_ptr server,
37 Another_One_ptr another,
38 int niterations);
40 /// thread entry point
41 virtual int svc (void);
43 private:
44 /// Validate the connection
45 void validate_connection (void);
47 private:
48 /// The server.
49 Simple_Server_var server_;
51 /// Another object served by the same server as server_.
52 Another_One_var another_;
54 /// The number of iterations on each client thread.
55 int niterations_;
58 #if defined(_MSC_VER)
59 # pragma warning(pop)
60 #endif /* _MSC_VER */
62 #include /**/ "ace/post.h"
63 #endif /* MT_SSLIOP_CLIENT_WORKER_H */