OpenDDS  Snapshot(2023/04/28-20:55)
TcpAcceptor.h
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 #ifndef OPENDDS_DCPS_TRANSPORT_TCP_TCPACCEPTOR_H
9 #define OPENDDS_DCPS_TRANSPORT_TCP_TCPACCEPTOR_H
10 
11 #include "TcpTransport_rch.h"
12 #include "TcpConnection.h"
13 #include "ace/Acceptor.h"
14 #include "ace/SOCK_Acceptor.h"
15 
17 
18 namespace OpenDDS {
19 namespace DCPS {
20 
21 class TcpAcceptor : public ACE_Acceptor<TcpConnection, ACE_SOCK_ACCEPTOR> {
22 public:
23 
25  virtual ~TcpAcceptor();
26 
27  // Returns a RcHandle which should be checked before use
29 
30  // This causes the Acceptor to drop its reference to the TcpTransport
31  void transport_shutdown();
32 
33 private:
34 
36 };
37 
38 } // namespace DCPS
39 } // namespace OpenDDS
40 
42 
43 #endif /* OPENDDS_TCPACCEPTOR_H */
WeakRcHandle< TcpTransport > transport_
Definition: TcpAcceptor.h:35
TcpAcceptor(RcHandle< TcpTransport > transport)
Definition: TcpAcceptor.cpp:19
RcHandle< TcpTransport > transport()
Definition: TcpAcceptor.cpp:32
#define OPENDDS_END_VERSIONED_NAMESPACE_DECL
The Internal API and Implementation of OpenDDS.
Definition: AddressCache.h:28