Kea  2.5.3
tcp_connection_acceptor.h
Go to the documentation of this file.
1 // Copyright (C) 2022 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef TCP_CONNECTION_ACCEPTOR_H
8 #define TCP_CONNECTION_ACCEPTOR_H
9 
10 #include <asiolink/tcp_acceptor.h>
11 #include <asiolink/tls_acceptor.h>
12 
13 #include <boost/shared_ptr.hpp>
14 #include <boost/system/system_error.hpp>
15 #include <functional>
16 
17 namespace isc {
18 namespace tcp {
19 
21 typedef std::function<void(const boost::system::error_code&)> TcpConnectionAcceptorCallback;
22 
25 
27 typedef boost::shared_ptr<TcpConnectionAcceptor> TcpConnectionAcceptorPtr;
28 
31 
33 typedef boost::shared_ptr<TlsConnectionAcceptor> TlsConnectionAcceptorPtr;
34 
35 } // end of namespace isc::tcp
36 } // end of namespace isc
37 
38 #endif
boost::shared_ptr< TlsConnectionAcceptor > TlsConnectionAcceptorPtr
Type of shared pointer to TLS acceptors.
boost::shared_ptr< TcpConnectionAcceptor > TcpConnectionAcceptorPtr
Type of shared pointer to TCP acceptors.
asiolink::TLSAcceptor< TcpConnectionAcceptorCallback > TlsConnectionAcceptor
Type of the TLS acceptor used in this library.
asiolink::TCPAcceptor< TcpConnectionAcceptorCallback > TcpConnectionAcceptor
Type of the TCP acceptor used in this library.
std::function< void(const boost::system::error_code &)> TcpConnectionAcceptorCallback
Type of the callback for the TCP acceptor used in this library.
Defines the logger used by the top-level component of kea-lfc.