summaryrefslogtreecommitdiff
path: root/TAO/tao/Message_Sent_Callback.h
blob: 5a3bccda8ed1f218ed6db05a625bb1bbc2a03458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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 */