OpenDDS  Snapshot(2023/04/28-20:55)
TransportControlElement.cpp
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 #include "DCPS/DdsDcps_pch.h" //Only the _pch include should start with DCPS/
10 #include "EntryExit.h"
11 
12 #if !defined (__ACE_INLINE__)
14 #endif /* __ACE_INLINE__ */
15 
17  const GUID_t& publication_id)
19  , msg_( msg_block.release())
20  , publication_id_(publication_id)
21 {
22  DBG_ENTRY_LVL("TransportControlElement", "TransportControlElement", 6);
23 }
24 
26 {
27  DBG_ENTRY_LVL("TransportControlElement", "~TransportControlElement", 6);
28 }
29 
30 void
32  bool /* dropped_by_transport */
33 )
34 {
35  delete this;
36 }
virtual void release_element(bool dropped_by_transport)
Invoked when the counter reaches 0.
TransportControlElement(Message_Block_Ptr msg_block, const GUID_t &publication_id=GUID_UNKNOWN)
void release(T x)
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68
Base wrapper class around a data/control sample to be sent.