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 #if !defined (__ACE_INLINE__)
00014 #include "TransportSendListener.inl"
00015 #endif
00016
00017 namespace OpenDDS {
00018 namespace DCPS {
00019
00020 TransportSendListener::TransportSendListener()
00021 {
00022 DBG_ENTRY_LVL("TransportSendListener","TransportSendListener",6);
00023 }
00024
00025 TransportSendListener::~TransportSendListener()
00026 {
00027 DBG_ENTRY_LVL("TransportSendListener","~TransportSendListener",6);
00028 }
00029
00030 void
00031 TransportSendListener::data_delivered(const DataSampleElement* sample)
00032 {
00033 ACE_UNUSED_ARG(sample);
00034 ACE_ERROR((LM_ERROR,
00035 "(%P|%t) ERROR: Subclass should override if sending data samples.\n"));
00036 }
00037
00038 void
00039 TransportSendListener::data_dropped(const DataSampleElement* sample,
00040 bool dropped_by_transport)
00041 {
00042 ACE_UNUSED_ARG(sample);
00043 ACE_UNUSED_ARG(dropped_by_transport);
00044 ACE_ERROR((LM_ERROR,
00045 "(%P|%t) ERROR: Subclass should override if sending data samples.\n"));
00046 }
00047
00048 void
00049 TransportSendListener::control_delivered(ACE_Message_Block* sample)
00050 {
00051 ACE_UNUSED_ARG(sample);
00052 ACE_ERROR((LM_ERROR,
00053 "(%P|%t) ERROR: Subclass should override if sending control samples.\n"));
00054 }
00055
00056 void
00057 TransportSendListener::control_dropped(ACE_Message_Block* sample,
00058 bool dropped_by_transport)
00059 {
00060 ACE_UNUSED_ARG(sample);
00061 ACE_UNUSED_ARG(dropped_by_transport);
00062 ACE_ERROR((LM_ERROR,
00063 "(%P|%t) ERROR: Subclass should override if sending control samples.\n"));
00064 }
00065
00066 SendControlStatus
00067 TransportSendListener::send_control_customized(const DataLinkSet_rch&,
00068 const DataSampleHeader&,
00069 ACE_Message_Block*, void*)
00070 {
00071 return SEND_CONTROL_OK;
00072 }
00073
00074 void
00075 TransportSendListener::retrieve_inline_qos_data(InlineQosData& qos_data) const
00076 {
00077 qos_data.dw_qos = TheServiceParticipant->initial_DataWriterQos();
00078 qos_data.pub_qos = TheServiceParticipant->initial_PublisherQos();
00079 qos_data.topic_name = "";
00080 }
00081
00082 } }