поменял название зависимости

This commit is contained in:
2024-10-30 11:27:26 +03:00
parent 839198820e
commit 815a081a4c
13 changed files with 81 additions and 2 deletions

View File

@@ -0,0 +1,23 @@
#pragma once
#include <boost/asio.hpp>
namespace seq_packet
{
using namespace boost::asio::local;
struct seqpacket_protocol
{
int type() const { return SOCK_SEQPACKET; }
int protocol() const { return 0; }
int family() const { return AF_UNIX; }
using endpoint = basic_endpoint<seqpacket_protocol>;
using socket = boost::asio::basic_stream_socket<seqpacket_protocol>;
using acceptor = boost::asio::basic_socket_acceptor<seqpacket_protocol>;
#if !defined(BOOST_ASIO_NO_IOSTREAM)
/// The UNIX domain iostream type.
typedef boost::asio::basic_socket_iostream<seqpacket_protocol> iostream;
#endif // !defined(BOOST_ASIO_NO_IOSTREAM)
};
}