summaryrefslogtreecommitdiff
path: root/ace/RMCast/RMCast_UDP_Proxy.h
blob: aa7e08c65be0e0d579774e2de9f4a8efe6f29b73 (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
62
63
64
65
66
67
68
69
70
71
72
73
/* -*- C++ -*- */
// $Id$

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

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

#include "RMCast.h"
#include "ace/INET_Addr.h"

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

class ACE_RMCast_Module;
class ACE_RMCast_IO_UDP;

class ACE_RMCast_Export ACE_RMCast_UDP_Proxy
{
  // = TITLE
  //   Reliable Multicast Sender Ambassador
  //
  // = DESCRIPTION
  //   Implement an Ambassador for the reliable multicast senders.
  //
public:
  ACE_RMCast_UDP_Proxy (ACE_RMCast_IO_UDP *io_udp,
                        const ACE_INET_Addr &peer_addr,
                        ACE_RMCast_Module *module);
  // Constructor

  virtual ~ACE_RMCast_UDP_Proxy (void);
  // Destructor

  int receive_message (char *buffer, size_t size);
  // Receive the message

  const ACE_INET_Addr &peer_addr (void) const;
  // The address of the peer

  ACE_RMCast_Module *module (void) const;
  // The module

private:
  ACE_RMCast_IO_UDP *io_udp_;
  // The IO facade

  ACE_INET_Addr peer_addr_;
  // The address of the peer

  ACE_RMCast_Module *module_;
  // Process the data and control messages.
};

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

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