OpenDDS  Snapshot(2023/04/28-20:55)
TcpSynchResource.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 "TcpSynchResource.h"
9 #include "TcpConnection.h"
10 #include "TcpSendStrategy.h"
11 #include "TcpDataLink.h"
12 
14 
16  TcpDataLink& link,
17  const int& max_output_pause_period_ms)
19  , link_(link)
20 {
21  DBG_ENTRY_LVL("TcpSynchResource","TcpSynchResource",6);
22 
23  if (max_output_pause_period_ms >= 0) {
24  timeout_ = new TimeDuration(TimeDuration::from_msec(max_output_pause_period_ms));
25  }
26 }
27 
29 {
30  DBG_ENTRY_LVL("TcpSynchResource","~TcpSynchResource",6);
31 }
32 
33 void
35 {
36  DBG_ENTRY_LVL("TcpSynchResource","notify_lost_on_backpressure_timeout",6);
37 
38  TcpConnection_rch connection = link_.get_connection();
39  connection->notify_lost_on_backpressure_timeout();
40 }
41 
virtual void notify_lost_on_backpressure_timeout()
TcpConnection_rch get_connection()
Definition: TcpDataLink.inl:22
TcpSynchResource(TcpDataLink &link, const int &max_output_pause_period_ms)
static TimeDuration from_msec(const ACE_UINT64 &ms)
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL