44 lines
980 B
C++
44 lines
980 B
C++
|
|
/// @file dpf/net/asio_ns.hpp
|
||
|
|
/// @brief Standalone asio as `asio::` inside the networking namespaces.
|
||
|
|
/// @details `dpf/asio.hpp` declares `dpf::asio` (DPF key shipping), which
|
||
|
|
/// would otherwise capture unqualified `asio::` lookups made inside
|
||
|
|
/// `namespace dpf` once both are included, in either order.
|
||
|
|
#ifndef LIBDPF_INCLUDE_DPF_NET_ASIO_NS_HPP__
|
||
|
|
#define LIBDPF_INCLUDE_DPF_NET_ASIO_NS_HPP__
|
||
|
|
|
||
|
|
#include <asio.hpp>
|
||
|
|
|
||
|
|
namespace dpf
|
||
|
|
{
|
||
|
|
namespace net
|
||
|
|
{
|
||
|
|
namespace asio = ::asio;
|
||
|
|
} // namespace net
|
||
|
|
namespace protocol
|
||
|
|
{
|
||
|
|
namespace asio = ::asio;
|
||
|
|
} // namespace protocol
|
||
|
|
namespace session
|
||
|
|
{
|
||
|
|
namespace asio = ::asio;
|
||
|
|
} // namespace session
|
||
|
|
namespace run
|
||
|
|
{
|
||
|
|
namespace asio = ::asio;
|
||
|
|
} // namespace run
|
||
|
|
namespace app
|
||
|
|
{
|
||
|
|
namespace asio = ::asio;
|
||
|
|
} // namespace app
|
||
|
|
namespace async
|
||
|
|
{
|
||
|
|
namespace asio = ::asio;
|
||
|
|
} // namespace async
|
||
|
|
namespace factory
|
||
|
|
{
|
||
|
|
namespace asio = ::asio;
|
||
|
|
} // namespace factory
|
||
|
|
} // namespace dpf
|
||
|
|
|
||
|
|
#endif // LIBDPF_INCLUDE_DPF_NET_ASIO_NS_HPP__
|