OpenDDS  Snapshot(2023/04/28-20:55)
TcpAcceptor.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 "TcpAcceptor.h"
9 #include "TcpTransport.h"
10 #include "TcpSendStrategy.h"
11 #include "TcpInst.h"
13 
15 
16 namespace OpenDDS {
17 namespace DCPS {
18 
20  : transport_(transport)
21 {
22  DBG_ENTRY_LVL("TcpAcceptor","TcpAcceptor",6);
23 }
24 
26 {
27  DBG_ENTRY_LVL("TcpAcceptor","~TcpAcceptor",6);
28  transport_.reset();
29 }
30 
33 {
34  DBG_ENTRY_LVL("TcpAcceptor","transport",6);
35  return transport_.lock();
36 }
37 
38 void
40 {
41  DBG_ENTRY_LVL("TcpAcceptor","transport_shutdown",6);
42  transport_.reset();
43 }
44 
45 }
46 }
47 
WeakRcHandle< TcpTransport > transport_
Definition: TcpAcceptor.h:35
TcpAcceptor(RcHandle< TcpTransport > transport)
Definition: TcpAcceptor.cpp:19
RcHandle< TcpTransport > transport()
Definition: TcpAcceptor.cpp:32
#define DBG_ENTRY_LVL(CNAME, MNAME, DBG_LVL)
Definition: EntryExit.h:68
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28