// test_i.h,v 1.1 1999/12/21 23:51:55 irfan Exp // ============================================================================ // // = LIBRARY // TAO/examples/Buffered_AMI/ // // = FILENAME // test_i.h // // = AUTHOR // Irfan Pyarali // // ============================================================================ #ifndef TAO_BUFFERED_AMI_TEST_I_H #define TAO_BUFFERED_AMI_TEST_I_H #include "testS.h" #if USE_ACS #include "ace/Reactor.h" #endif class test_i : public POA_test { // = TITLE // Simple implementation. // public: struct cbData { CORBA::ULong reply_number; ESO::CBlong_ptr cb; }; test_i (CORBA::ORB_ptr orb); // ctor. // = The test interface methods. void method (CORBA::ULong request_number, CORBA::ULong_out reply_number, CORBA::Environment &) ACE_THROW_SPEC (()); void method_async (CORBA::ULong request_number, ESO::CBlong_ptr cb, const ESO::CBDescIn & desc, CORBA::Environment &) ACE_THROW_SPEC (()); #ifdef ADDITIONAL void additional_method (CORBA::ULong request_number, CORBA::ULong_out reply_number, CORBA::Environment &) ACE_THROW_SPEC (()); void additional_method_async (CORBA::ULong request_number, ESO::CBlong_ptr cb, const ESO::CBDescIn & desc, CORBA::Environment &) ACE_THROW_SPEC (()); #endif void shutdown (CORBA::Environment &) ACE_THROW_SPEC (()); private: static ACE_Reactor *rtc; static void *worker(void *arguments); CORBA::ORB_var orb_; // The ORB. }; #endif /* TAO_BUFFERED_AMI_TEST_I_H */