Kea 2.5.9
unix_domain_socket_endpoint.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 UNIX_DOMAIN_SOCKET_ENDPOINT_H
8#define UNIX_DOMAIN_SOCKET_ENDPOINT_H
9
10#ifndef BOOST_ASIO_HPP
11#error "asio.hpp must be included before including this, see asiolink.h as to why"
12#endif
13
14#include <string>
15
16namespace isc {
17namespace asiolink {
18
25public:
26
30 explicit UnixDomainSocketEndpoint(const std::string& endpoint_path)
31 : endpoint_(endpoint_path) {
32 }
33
35 const boost::asio::local::stream_protocol::endpoint&
37 return (endpoint_);
38 }
39
40private:
41
43 boost::asio::local::stream_protocol::endpoint endpoint_;
44
45};
46
47} // end of namespace isc::asiolink
48} // end of namespace isc
49
50#endif // UNIX_DOMAIN_SOCKET_ENDPOINT_H
Defines the logger used by the top-level component of kea-lfc.