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