2 // local/datagram_protocol.hpp
3 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~
5 // Copyright (c) 2003-2016 Christopher M. Kohlhoff (chris at kohlhoff dot com)
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)
11 #ifndef BOOST_ASIO_LOCAL_DATAGRAM_PROTOCOL_HPP
12 #define BOOST_ASIO_LOCAL_DATAGRAM_PROTOCOL_HPP
14 #if defined(_MSC_VER) && (_MSC_VER >= 1200)
16 #endif // defined(_MSC_VER) && (_MSC_VER >= 1200)
18 #include <boost/asio/detail/config.hpp>
20 #if defined(BOOST_ASIO_HAS_LOCAL_SOCKETS) \
21 || defined(GENERATING_DOCUMENTATION)
23 #include <boost/asio/basic_datagram_socket.hpp>
24 #include <boost/asio/detail/socket_types.hpp>
25 #include <boost/asio/local/basic_endpoint.hpp>
27 #include <boost/asio/detail/push_options.hpp>
33 /// Encapsulates the flags needed for datagram-oriented UNIX sockets.
35 * The boost::asio::local::datagram_protocol class contains flags necessary for
36 * datagram-oriented UNIX domain sockets.
39 * @e Distinct @e objects: Safe.@n
40 * @e Shared @e objects: Safe.
45 class datagram_protocol
48 /// Obtain an identifier for the type of the protocol.
54 /// Obtain an identifier for the protocol.
60 /// Obtain an identifier for the protocol family.
66 /// The type of a UNIX domain endpoint.
67 typedef basic_endpoint<datagram_protocol> endpoint;
69 /// The UNIX domain socket type.
70 typedef basic_datagram_socket<datagram_protocol> socket;
77 #include <boost/asio/detail/pop_options.hpp>
79 #endif // defined(BOOST_ASIO_HAS_LOCAL_SOCKETS)
80 // || defined(GENERATING_DOCUMENTATION)
82 #endif // BOOST_ASIO_LOCAL_DATAGRAM_PROTOCOL_HPP