OpenDDS::DCPS::SendResponseListener Class Reference

Simple listener to discard response samples. More...

#include <SendResponseListener.h>

Inheritance diagram for OpenDDS::DCPS::SendResponseListener:
Inheritance graph
[legend]
Collaboration diagram for OpenDDS::DCPS::SendResponseListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SendResponseListener (const OPENDDS_STRING &msg_src)
virtual ~SendResponseListener ()
virtual void data_delivered (const DataSampleElement *sample)
virtual void data_dropped (const DataSampleElement *sample, bool dropped_by_transport)
virtual void control_delivered (const Message_Block_Ptr &sample)
virtual void control_dropped (const Message_Block_Ptr &sample, bool dropped_by_transport)
void notify_publication_disconnected (const ReaderIdSeq &)
void notify_publication_reconnected (const ReaderIdSeq &)
void notify_publication_lost (const ReaderIdSeq &)
void remove_associations (const ReaderIdSeq &, bool)
void track_message ()

Private Member Functions

void _add_ref ()
void _remove_ref ()

Private Attributes

MessageTracker tracker_

Detailed Description

Simple listener to discard response samples.

This is a simple listener implementation used to release response samples once they have been either delivered or dropped. No special actions are taken to distinguish between the two results.

Definition at line 30 of file SendResponseListener.h.


Constructor & Destructor Documentation

OpenDDS::DCPS::SendResponseListener::SendResponseListener ( const OPENDDS_STRING &  msg_src  )  [explicit]

Definition at line 18 of file SendResponseListener.cpp.

00019 : tracker_(msg_src)
00020 {
00021 }

OpenDDS::DCPS::SendResponseListener::~SendResponseListener (  )  [virtual]

Definition at line 23 of file SendResponseListener.cpp.

References OPENDDS_STRING, tracker_, and OpenDDS::DCPS::MessageTracker::wait_messages_pending().

00024 {
00025   OPENDDS_STRING caller_string("SendResponseListener::~SendResponseListener");
00026   tracker_.wait_messages_pending(caller_string);
00027 }

Here is the call graph for this function:


Member Function Documentation

void OpenDDS::DCPS::SendResponseListener::_add_ref ( void   )  [inline, private, virtual]

Reimplemented from OpenDDS::DCPS::RcObject.

Definition at line 52 of file SendResponseListener.h.

00052 {}

void OpenDDS::DCPS::SendResponseListener::_remove_ref ( void   )  [inline, private, virtual]

Reimplemented from OpenDDS::DCPS::RcObject.

Definition at line 53 of file SendResponseListener.h.

00053 {}

void OpenDDS::DCPS::SendResponseListener::control_delivered ( const Message_Block_Ptr sample  )  [virtual]

Reimplemented from OpenDDS::DCPS::TransportSendListener.

Definition at line 44 of file SendResponseListener.cpp.

References OpenDDS::DCPS::MessageTracker::message_delivered(), and tracker_.

00045 {
00046   tracker_.message_delivered();
00047 }

Here is the call graph for this function:

void OpenDDS::DCPS::SendResponseListener::control_dropped ( const Message_Block_Ptr sample,
bool  dropped_by_transport 
) [virtual]

Reimplemented from OpenDDS::DCPS::TransportSendListener.

Definition at line 50 of file SendResponseListener.cpp.

References OpenDDS::DCPS::MessageTracker::message_dropped(), and tracker_.

00053 {
00054   tracker_.message_dropped();
00055 }

Here is the call graph for this function:

void OpenDDS::DCPS::SendResponseListener::data_delivered ( const DataSampleElement sample  )  [virtual]

Reimplemented from OpenDDS::DCPS::TransportSendListener.

Definition at line 30 of file SendResponseListener.cpp.

References OpenDDS::DCPS::MessageTracker::message_delivered(), and tracker_.

00031 {
00032   tracker_.message_delivered();
00033 }

Here is the call graph for this function:

void OpenDDS::DCPS::SendResponseListener::data_dropped ( const DataSampleElement sample,
bool  dropped_by_transport 
) [virtual]

Reimplemented from OpenDDS::DCPS::TransportSendListener.

Definition at line 36 of file SendResponseListener.cpp.

References OpenDDS::DCPS::MessageTracker::message_dropped(), and tracker_.

00039 {
00040   tracker_.message_dropped();
00041 }

Here is the call graph for this function:

void OpenDDS::DCPS::SendResponseListener::notify_publication_disconnected ( const ReaderIdSeq  )  [inline, virtual]

Implements OpenDDS::DCPS::TransportSendListener.

Definition at line 44 of file SendResponseListener.h.

00044 {}

void OpenDDS::DCPS::SendResponseListener::notify_publication_lost ( const ReaderIdSeq  )  [inline, virtual]

Implements OpenDDS::DCPS::TransportSendListener.

Definition at line 46 of file SendResponseListener.h.

00046 {}

void OpenDDS::DCPS::SendResponseListener::notify_publication_reconnected ( const ReaderIdSeq  )  [inline, virtual]

Implements OpenDDS::DCPS::TransportSendListener.

Definition at line 45 of file SendResponseListener.h.

00045 {}

void OpenDDS::DCPS::SendResponseListener::remove_associations ( const ReaderIdSeq ,
bool   
) [inline, virtual]

Implements OpenDDS::DCPS::TransportSendListener.

Definition at line 47 of file SendResponseListener.h.

00047 {}

void OpenDDS::DCPS::SendResponseListener::track_message (  ) 

Definition at line 58 of file SendResponseListener.cpp.

References OpenDDS::DCPS::MessageTracker::message_sent(), and tracker_.

Referenced by OpenDDS::DCPS::DataLink::send_control(), and OpenDDS::DCPS::DataLinkSet::send_response().

00059 {
00060   tracker_.message_sent();
00061 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 10 Aug 2018 for OpenDDS by  doxygen 1.6.1