| Kea 3.0.2-git

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
16 namespace isc {
17 namespace asiolink {
18
24 class UnixDomainSocketEndpoint {
25 public:
26
30 explicit UnixDomainSocketEndpoint(const std::string& endpoint_path)
31 : endpoint_(endpoint_path) {
32 }
33
35 const boost::asio::local::stream_protocol::endpoint&
36 getASIOEndpoint() const {
37 return (endpoint_);
38 }
39
40 private:
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
isc::asiolink::UnixDomainSocketEndpoint::UnixDomainSocketEndpoint
UnixDomainSocketEndpoint(const std::string &endpoint_path)
Constructor.
Definition unix_domain_socket_endpoint.h:30
isc::asiolink::UnixDomainSocketEndpoint::getASIOEndpoint
const boost::asio::local::stream_protocol::endpoint & getASIOEndpoint() const
Returns underlying ASIO endpoint.
Definition unix_domain_socket_endpoint.h:36
isc::asiolink
Definition addr_utilities.cc:170
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148