Realistic 3D camera system
3D camera system components
host_name.hpp
Go to the documentation of this file.
1 //
2 // ip/host_name.hpp
3 // ~~~~~~~~~~~~~~~~
4 //
5 // Copyright (c) 2003-2015 Christopher M. Kohlhoff (chris at kohlhoff dot com)
6 //
7 // Distributed under the Boost Software License, Version 1.0. (See accompanying
8 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
9 //
10 
11 #ifndef ASIO_IP_HOST_NAME_HPP
12 #define ASIO_IP_HOST_NAME_HPP
13 
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
15 # pragma once
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
17 
18 #include "asio/detail/config.hpp"
19 #include <string>
20 #include "asio/error_code.hpp"
21 
23 
24 namespace asio {
25 namespace ip {
26 
28 ASIO_DECL std::string host_name();
29 
31 ASIO_DECL std::string host_name(asio::error_code& ec);
32 
33 } // namespace ip
34 } // namespace asio
35 
37 
38 #if defined(ASIO_HEADER_ONLY)
40 #endif // defined(ASIO_HEADER_ONLY)
41 
42 #endif // ASIO_IP_HOST_NAME_HPP
Class to represent an error code value.
Definition: error_code.hpp:80
#define ASIO_DECL
Definition: config.hpp:43
ASIO_DECL std::string host_name()
Get the current host name.
Definition: host_name.ipp:29