summaryrefslogtreecommitdiff
path: root/ace/RMCast/RMCast_UDP_Reliable_Receiver.h
blob: 56797861b4b71437f87383d543b2e373524bca02 (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
/* -*- C++ -*- */
// $Id$

#ifndef ACE_RMCAST_UDP_RELIABLE_RECEIVER_H
#define ACE_RMCAST_UDP_RELIABLE_RECEIVER_H
#include /**/ "ace/pre.h"

#include "RMCast_Singleton_Factory.h"
#include "RMCast_Reliable_Factory.h"
#include "RMCast_IO_UDP.h"

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

class ACE_Reactor;

class ACE_RMCast_Export ACE_RMCast_UDP_Reliable_Receiver : public ACE_RMCast_Module
{
public:
  /// Constructor
  ACE_RMCast_UDP_Reliable_Receiver (ACE_RMCast_Module *user_control);

  /// Destructor
  virtual ~ACE_RMCast_UDP_Reliable_Receiver (void);

  /// Open the UDP I/O module.
  int init (const ACE_INET_Addr &mcast_group);

  /// Use the reactor to handle incoming messages
  void reactive_incoming_messages (ACE_Reactor *reactor);

private:
  /// All the proxys give their messages to user module
  ACE_RMCast_Singleton_Factory user_factory_;

  /// This factory creates the per-proxy stack
  ACE_RMCast_Reliable_Factory factory_;

  /// Handle all the UDP I/O
  ACE_RMCast_IO_UDP io_udp_;
};

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

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