2 //=============================================================================
6 * @author Balachandran Natarajan <bala@cs.wustl.edu>
8 //=============================================================================
11 #ifndef TAO_BIDIRECTIONAL_TEST_I_H
12 #define TAO_BIDIRECTIONAL_TEST_I_H
19 * @brief A callback object to the "client"
21 * To test that the server can call the client on the same
22 * connection that was established by the client
24 class Callback_i
: public virtual POA_Callback
28 Callback_i (CORBA::ORB_ptr orb
);
30 /// Safe way to shutdown
33 /// The callback method
34 void callback_method ();
42 * @class Simple_Server_i
44 * @brief Simpler Server implementation
46 * Implements the Simple_Server interface in test.idl
48 class Simple_Server_i
: public virtual POA_Simple_Server
52 Simple_Server_i (CORBA::ORB_ptr orb
, int no_iterations
);
54 // = The Simple_Server methods.
55 CORBA::Long
test_method (CORBA::Boolean do_callback
);
57 void callback_object (Callback_ptr callback
);
66 Callback_var callback_
;
68 /// Number of times the callback needs to be called
72 #if defined(__ACE_INLINE__)
74 #endif /* __ACE_INLINE__ */
76 #endif /* TAO_BIDIRECTIONAL_TEST_I_H */