diff options
Diffstat (limited to 'TAO/orbsvcs/tests/Security/MT_SSLIOP/Client_Worker.h')
-rw-r--r-- | TAO/orbsvcs/tests/Security/MT_SSLIOP/Client_Worker.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/Security/MT_SSLIOP/Client_Worker.h b/TAO/orbsvcs/tests/Security/MT_SSLIOP/Client_Worker.h new file mode 100644 index 00000000000..daae1a99760 --- /dev/null +++ b/TAO/orbsvcs/tests/Security/MT_SSLIOP/Client_Worker.h @@ -0,0 +1,67 @@ +// $Id$ + +// =========================================================================== +// +// = LIBRARY +// TAO/orbsvcs/tests/Security/MT_SSLIOP +// +// = FILENAME +// Client_Worker.h +// +// = AUTHOR +// Anand Krishnan +// +// =========================================================================== + +#ifndef MT_SSLIOP_CLIENT_WORKER_H +#define MT_SSLIOP_CLIENT_WORKER_H +#include /**/ "ace/pre.h" +#include "ace/Task.h" + +#if defined (_MSC_VER) +# pragma warning(push) +# pragma warning (disable:4250) +#endif /* _MSC_VER */ + +#include "testC.h" + + +class Client_Worker : public ACE_Task_Base +{ + // = TITLE + // Run the Client_Worker Thread + // + // = DESCRIPTION + // Use the ACE_Task_Base class to run the client threads + // + +public: + Client_Worker (Simple_Server_ptr server, + Another_One_ptr another, + int niterations); + // ctor + + virtual int svc (void); + // thread entry point + +private: + void validate_connection (ACE_ENV_SINGLE_ARG_DECL_NOT_USED); + // Validate the connection + +private: + Simple_Server_var server_; + // The server. + + Another_One_var another_; + // Another object served by the same server as server_. + + int niterations_; + // The number of iterations on each client thread. +}; + +#if defined(_MSC_VER) +# pragma warning(pop) +#endif /* _MSC_VER */ + +#include /**/ "ace/post.h" +#endif /* MT_SSLIOP_CLIENT_WORKER_H */ |