summaryrefslogtreecommitdiff
path: root/protocols/ace/RMCast/RMCast_Sender_Proxy.h
blob: c6b51f78b485ab348a6e848dc806fb803deb6545 (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
61
/* -*- C++ -*- */
// $Id$

// ============================================================================
//
// = LIBRARY
//    ace
//
// = FILENAME
//    RMCast_Sender_Proxy.h
//
// = AUTHOR
//    Carlos O'Ryan <coryan@uci.edu>
//
// ============================================================================

#ifndef ACE_RMCAST_SENDER_PROXY_H
#define ACE_RMCAST_SENDER_PROXY_H
#include "ace/pre.h"

#include "RMCast.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

class ACE_RMCast_Module;

class ACE_RMCast_Export ACE_RMCast_Sender_Proxy
{
  // = TITLE
  //   Reliable Multicast Sender Ambassador
  //
  // = DESCRIPTION
  //   Implement an Ambassador for the reliable multicast senders.
  //
public:
  ACE_RMCast_Sender_Proxy (ACE_RMCast_Module *module);
  // Constructor

  virtual ~ACE_RMCast_Sender_Proxy (void);
  // Destructor

  ACE_RMCast_Module *module (void) const;
  // Return the internal module

  virtual int receive_message (char *buffer, size_t size) = 0;
  // A new message has been received, process it

private:
  ACE_RMCast_Module *module_;
  // Process the data, control messages are processed by the Sender
  // proxy
};

#if defined (__ACE_INLINE__)
#include "RMCast_Sender_Proxy.i"
#endif /* __ACE_INLINE__ */

#include "ace/post.h"
#endif /* ACE_RMCAST_SENDER_PROXY_H */