12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- #ifndef BOOST_ASIO_LOCAL_STREAM_PROTOCOL_HPP
- #define BOOST_ASIO_LOCAL_STREAM_PROTOCOL_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/push_options.hpp>
- #include <boost/asio/basic_socket_acceptor.hpp>
- #include <boost/asio/basic_socket_iostream.hpp>
- #include <boost/asio/basic_stream_socket.hpp>
- #include <boost/asio/local/basic_endpoint.hpp>
- #include <boost/asio/detail/socket_types.hpp>
- #if defined(BOOST_ASIO_HAS_LOCAL_SOCKETS) \
- || defined(GENERATING_DOCUMENTATION)
- namespace boost {
- namespace asio {
- namespace local {
- class stream_protocol
- {
- public:
-
- int type() const
- {
- return SOCK_STREAM;
- }
-
- int protocol() const
- {
- return 0;
- }
-
- int family() const
- {
- return AF_UNIX;
- }
-
- typedef basic_endpoint<stream_protocol> endpoint;
-
- typedef basic_stream_socket<stream_protocol> socket;
-
- typedef basic_socket_acceptor<stream_protocol> acceptor;
-
- typedef basic_socket_iostream<stream_protocol> iostream;
- };
- }
- }
- }
- #endif
-
- #include <boost/asio/detail/pop_options.hpp>
- #endif
|