1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #ifndef BOOST_ASIO_LOCAL_SEQ_PACKET_PROTOCOL_HPP
- #define BOOST_ASIO_LOCAL_SEQ_PACKET_PROTOCOL_HPP
- #if defined(_MSC_VER) && (_MSC_VER >= 1200)
- # pragma once
- #endif
- #include <boost/asio/detail/config.hpp>
- #if defined(BOOST_ASIO_HAS_LOCAL_SOCKETS) \
- || defined(GENERATING_DOCUMENTATION)
- #include <boost/asio/basic_socket_acceptor.hpp>
- #include <boost/asio/basic_seq_packet_socket.hpp>
- #include <boost/asio/detail/socket_types.hpp>
- #include <boost/asio/local/basic_endpoint.hpp>
- #include <boost/asio/detail/push_options.hpp>
- namespace boost {
- namespace asio {
- namespace local {
- class seq_packet_protocol
- {
- public:
-
- int type() const noexcept
- {
- return SOCK_SEQPACKET;
- }
-
- int protocol() const noexcept
- {
- return 0;
- }
-
- int family() const noexcept
- {
- return AF_UNIX;
- }
-
- typedef basic_endpoint<seq_packet_protocol> endpoint;
-
- typedef basic_seq_packet_socket<seq_packet_protocol> socket;
-
- typedef basic_socket_acceptor<seq_packet_protocol> acceptor;
- };
- }
- }
- }
- #include <boost/asio/detail/pop_options.hpp>
- #endif
-
- #endif
|