| Kea 3.0.2-git

http_acceptor.h
Go to the documentation of this file.
1// Copyright (C) 2017-2021 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 HTTP_ACCEPTOR_H
8#define HTTP_ACCEPTOR_H
9
10#include <asiolink/tls_acceptor.h>
11#include <boost/shared_ptr.hpp>
12#include <boost/system/system_error.hpp>
13#include <functional>
14
15 namespace isc {
16 namespace http {
17
19 typedef std::function<void(const boost::system::error_code&)>
20 HttpAcceptorCallback;
21
23 typedef asiolink::TCPAcceptor<HttpAcceptorCallback> HttpAcceptor;
24
28 typedef asiolink::TLSAcceptor<HttpAcceptorCallback> HttpsAcceptor;
29
31 typedef boost::shared_ptr<HttpAcceptor> HttpAcceptorPtr;
32
34 typedef boost::shared_ptr<HttpsAcceptor> HttpsAcceptorPtr;
35
36} // end of namespace isc::http
37} // end of namespace isc
38
39#endif
isc::asiolink::TCPAcceptor
Provides a service for accepting new TCP connections.
Definition tcp_acceptor.h:32
isc::asiolink::TLSAcceptor
Provides a service for accepting new TLS connections.
Definition tls_acceptor.h:31
isc::http
Definition auth_config.h:19
isc::http::HttpsAcceptor
asiolink::TLSAcceptor< HttpAcceptorCallback > HttpsAcceptor
Type of the TLS acceptor used in this library.
Definition http_acceptor.h:28
isc::http::HttpAcceptorCallback
std::function< void(const boost::system::error_code &)> HttpAcceptorCallback
Type of the callback for the TCP acceptor used in this library.
Definition http_acceptor.h:20
isc::http::HttpAcceptor
asiolink::TCPAcceptor< HttpAcceptorCallback > HttpAcceptor
Type of the TCP acceptor used in this library.
Definition http_acceptor.h:23
isc::http::HttpAcceptorPtr
boost::shared_ptr< HttpAcceptor > HttpAcceptorPtr
Type of shared pointer to TCP acceptors.
Definition http_acceptor.h:31
isc::http::HttpsAcceptorPtr
boost::shared_ptr< HttpsAcceptor > HttpsAcceptorPtr
Type of shared pointer to TLS acceptors.
Definition http_acceptor.h:34
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148
tls_acceptor.h