refactor(aliases): add Boost type aliases

This commit is contained in:
Ваше Имя
2025-10-09 14:25:54 +04:00
parent 88520915dc
commit 1e6fecb7bd
4 changed files with 22 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
#pragma once
#include <boost/asio/io_context.hpp>
// IO Contextct
using IoContext = boost::asio::io_context;
+7
View File
@@ -0,0 +1,7 @@
#pragma once
#include <boost/asio/ip/tcp.hpp>
// TCP
using TcpSocket = boost::asio::ip::tcp::socket;
using TcpAcceptor = boost::asio::ip::tcp::acceptor;
using TcpEndpoint = boost::asio::ip::tcp::endpoint;
@@ -0,0 +1,5 @@
#pragma once
#include <boost/asio/steady_timer.hpp>
// Timers
using SteadyTimer = boost::asio::steady_timer;
@@ -0,0 +1,5 @@
#pragma once
#include <boost/system/error_code.hpp>
// Error handling
using ErrorCode = boost::system::error_code;