OpenDDS  Snapshot(2023/04/28-20:55)
TransportReceiveListener.h
Go to the documentation of this file.
1 /*
2  *
3  *
4  * Distributed under the OpenDDS License.
5  * See: http://www.opendds.org/license.html
6  */
7 
8 #ifndef OPENDDS_DCPS_TRANSPORT_FRAMEWORK_TRANSPORTRECEIVELISTENER_H
9 #define OPENDDS_DCPS_TRANSPORT_FRAMEWORK_TRANSPORTRECEIVELISTENER_H
10 
11 #include "dds/DCPS/dcps_export.h"
12 #include "dds/DdsDcpsInfoUtilsC.h"
13 #include "dds/DCPS/RcHandle_T.h"
14 #include "dds/DCPS/RcObject.h"
16 
17 namespace OpenDDS {
18 namespace DCPS {
19 
20 class ReceivedDataSample;
21 class WriterIdSeq;
22 
24  : public virtual RcObject {
25 public:
26 
27  virtual ~TransportReceiveListener();
28 
29  virtual void data_received(const ReceivedDataSample& sample) = 0;
30 
31  virtual void notify_subscription_disconnected(const WriterIdSeq& pubids) = 0;
32  virtual void notify_subscription_reconnected(const WriterIdSeq& pubids) = 0;
33  virtual void notify_subscription_lost(const WriterIdSeq& pubids) = 0;
34 
35  virtual void remove_associations(const WriterIdSeq& pubids, bool notify) = 0;
36 
37  virtual void transport_discovery_change() {}
38 
39 protected:
40 
42 };
43 
45 
46 } // namespace DCPS
47 } // namespace OpenDDS
48 
50 
51 #endif /* OPENDDS_DCPS_TRANSPORTRECEIVELISTENER_H */
#define OpenDDS_Dcps_Export
Definition: dcps_export.h:24
RcHandle< TransportReceiveListener > TransportReceiveListener_rch
Holds a data sample received by the transport.
sequence< GUID_t > WriterIdSeq
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28