From 52c021ee0b0c6ad2128ed550c694aad0d11d4c3f Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 21 Apr 2024 16:53:22 +0200 Subject: Adding upstream version 2.5.7. Signed-off-by: Daniel Baumann --- src/lib/tcp/tcp_connection_acceptor.h | 38 +++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 src/lib/tcp/tcp_connection_acceptor.h (limited to 'src/lib/tcp/tcp_connection_acceptor.h') diff --git a/src/lib/tcp/tcp_connection_acceptor.h b/src/lib/tcp/tcp_connection_acceptor.h new file mode 100644 index 0000000..028d999 --- /dev/null +++ b/src/lib/tcp/tcp_connection_acceptor.h @@ -0,0 +1,38 @@ +// Copyright (C) 2022 Internet Systems Consortium, Inc. ("ISC") +// +// This Source Code Form is subject to the terms of the Mozilla Public +// License, v. 2.0. If a copy of the MPL was not distributed with this +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +#ifndef TCP_CONNECTION_ACCEPTOR_H +#define TCP_CONNECTION_ACCEPTOR_H + +#include +#include + +#include +#include +#include + +namespace isc { +namespace tcp { + +/// @brief Type of the callback for the TCP acceptor used in this library. +typedef std::function TcpConnectionAcceptorCallback; + +/// @brief Type of the TCP acceptor used in this library. +typedef asiolink::TCPAcceptor TcpConnectionAcceptor; + +/// @brief Type of shared pointer to TCP acceptors. +typedef boost::shared_ptr TcpConnectionAcceptorPtr; + +/// @brief Type of the TLS acceptor used in this library. +typedef asiolink::TLSAcceptor TlsConnectionAcceptor; + +/// @brief Type of shared pointer to TLS acceptors. +typedef boost::shared_ptr TlsConnectionAcceptorPtr; + +} // end of namespace isc::tcp +} // end of namespace isc + +#endif -- cgit v1.2.3