diff options
Diffstat (limited to 'TAO/tao/Message_Sent_Callback.h')
-rw-r--r-- | TAO/tao/Message_Sent_Callback.h | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/TAO/tao/Message_Sent_Callback.h b/TAO/tao/Message_Sent_Callback.h new file mode 100644 index 00000000000..5a3bccda8ed --- /dev/null +++ b/TAO/tao/Message_Sent_Callback.h @@ -0,0 +1,60 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file Message_Sent_Callback.h + * + * $Id$ + * + * @author Carlos O'Ryan <coryan@uci.edu> + */ +//============================================================================= + +#ifndef TAO_MESSAGE_SENT_CALLBACK_H +#define TAO_MESSAGE_SENT_CALLBACK_H +#include "ace/pre.h" + +#include "corbafwd.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +/** + * @class TAO_Message_Sent_Callback + * + * @brief Encapsulate the signaling mechanism used to wake up threads + * waiting for a message to be sent out. + * + * Please read the documentation in the TAO_Transport class to find + * out more about the design of the outgoing data path. + * + */ +class TAO_Export TAO_Message_Sent_Callback +{ +public: + /// Constructor + TAO_Message_Sent_Callback (void); + + /// Destructor + virtual ~TAO_Message_Sent_Callback (void); + + /// The message has been successfully sent + virtual void send_completed (void) = 0; + + /// The message has failed + virtual void send_failed (void) = 0; + + /// The message has timedout + virtual void send_timeout (void) = 0; + + /// The connection was closed before the message was sent + virtual void connection_closed (void) = 0; +}; + +#if defined (__ACE_INLINE__) +# include "Message_Sent_Callback.inl" +#endif /* __ACE_INLINE__ */ + +#include "ace/post.h" +#endif /* TAO_MESSAGE_SENT_CALLBACK_H */ |