Sha256: 47fcff4706755414351f1283e397c3d951a4bea2078522f25f887ac60dc1ab75

Contents?: true

Size: 984 Bytes

Versions: 6

Compression:

Stored size: 984 Bytes

Contents

//
// ip/host_name.hpp
// ~~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2022 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//

#ifndef ASIO_IP_HOST_NAME_HPP
#define ASIO_IP_HOST_NAME_HPP

#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma once
#endif // defined(_MSC_VER) && (_MSC_VER >= 1200)

#include "asio/detail/config.hpp"
#include <string>
#include "asio/error_code.hpp"

#include "asio/detail/push_options.hpp"

namespace asio {
namespace ip {

/// Get the current host name.
ASIO_DECL std::string host_name();

/// Get the current host name.
ASIO_DECL std::string host_name(asio::error_code& ec);

} // namespace ip
} // namespace asio

#include "asio/detail/pop_options.hpp"

#if defined(ASIO_HEADER_ONLY)
# include "asio/ip/impl/host_name.ipp"
#endif // defined(ASIO_HEADER_ONLY)

#endif // ASIO_IP_HOST_NAME_HPP

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
couchbase-3.4.5 ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp
couchbase-3.4.4 ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp
couchbase-3.4.3 ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp
couchbase-3.4.2 ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp
couchbase-3.4.1 ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp
couchbase-3.4.0 ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp