TransportSendListener.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #include "DCPS/DdsDcps_pch.h"
00009 #include "dds/DCPS/Service_Participant.h"
00010 #include "TransportSendListener.h"
00011 #include "EntryExit.h"
00012
00013 OPENDDS_BEGIN_VERSIONED_NAMESPACE_DECL
00014
00015 namespace OpenDDS {
00016 namespace DCPS {
00017
00018 TransportSendListener::TransportSendListener()
00019 {
00020 DBG_ENTRY_LVL("TransportSendListener","TransportSendListener",6);
00021 }
00022
00023 TransportSendListener::~TransportSendListener()
00024 {
00025 DBG_ENTRY_LVL("TransportSendListener","~TransportSendListener",6);
00026 }
00027
00028 void
00029 TransportSendListener::data_delivered(const DataSampleElement* sample)
00030 {
00031 ACE_UNUSED_ARG(sample);
00032 ACE_ERROR((LM_ERROR,
00033 "(%P|%t) ERROR: Subclass should override if sending data samples.\n"));
00034 }
00035
00036 void
00037 TransportSendListener::data_dropped(const DataSampleElement* sample,
00038 bool dropped_by_transport)
00039 {
00040 ACE_UNUSED_ARG(sample);
00041 ACE_UNUSED_ARG(dropped_by_transport);
00042 ACE_ERROR((LM_ERROR,
00043 "(%P|%t) ERROR: Subclass should override if sending data samples.\n"));
00044 }
00045
00046 void
00047 TransportSendListener::control_delivered(const Message_Block_Ptr& sample)
00048 {
00049 ACE_UNUSED_ARG(sample);
00050 ACE_ERROR((LM_ERROR,
00051 "(%P|%t) ERROR: Subclass should override if sending control samples.\n"));
00052 }
00053
00054 void
00055 TransportSendListener::control_dropped(const Message_Block_Ptr& sample,
00056 bool dropped_by_transport)
00057 {
00058 ACE_UNUSED_ARG(sample);
00059 ACE_UNUSED_ARG(dropped_by_transport);
00060 ACE_ERROR((LM_ERROR,
00061 "(%P|%t) ERROR: Subclass should override if sending control samples.\n"));
00062 }
00063
00064 SendControlStatus
00065 TransportSendListener::send_control_customized(const DataLinkSet_rch&,
00066 const DataSampleHeader&,
00067 ACE_Message_Block*, void*)
00068 {
00069 return SEND_CONTROL_OK;
00070 }
00071
00072 void
00073 TransportSendListener::retrieve_inline_qos_data(InlineQosData& qos_data) const
00074 {
00075 qos_data.dw_qos = TheServiceParticipant->initial_DataWriterQos();
00076 qos_data.pub_qos = TheServiceParticipant->initial_PublisherQos();
00077 qos_data.topic_name = "";
00078 }
00079
00080 } }
00081
00082 OPENDDS_END_VERSIONED_NAMESPACE_DECL