SRS-control 0.1.4
Loading...
Searching...
No Matches
CommonAlias.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <array>
4#include <boost/asio/any_io_executor.hpp>
5#include <boost/asio/thread_pool.hpp>
6#include <cstdint>
8#include <vector>
9
10namespace srs
11{
12 namespace asio = boost::asio;
13
14 using io_context_type = asio::thread_pool;
15 using io_executor_type = asio::any_io_executor;
16
17 using BufferElementType = char;
18 using BinaryData = std::vector<BufferElementType>;
19
20 template <int buffer_size = common::SMALL_READ_MSG_BUFFER_SIZE>
21 using ReadBufferType = std::array<BufferElementType, buffer_size>;
22
23 using CommunicateEntryType = uint32_t;
24} // namespace srs
asio::any_io_executor io_executor_type
char BufferElementType
std::vector< BufferElementType > BinaryData
uint32_t CommunicateEntryType
asio::thread_pool io_context_type
std::array< BufferElementType, buffer_size > ReadBufferType