3#include "telnetpp/detail/export.hpp"
12using byte = std::uint8_t;
13using option_type = std::uint8_t;
14using command_type = std::uint8_t;
15using negotiation_type = std::uint8_t;
16using subnegotiation_content_type = byte;
19inline constexpr command_type
const se = 240;
20inline constexpr command_type
const nop = 241;
21inline constexpr command_type
const dm = 242;
22inline constexpr command_type
const brk = 243;
23inline constexpr command_type
const ip = 244;
24inline constexpr command_type
const ao = 245;
25inline constexpr command_type
const ayt = 246;
26inline constexpr command_type
const ec = 247;
27inline constexpr command_type
const el = 248;
28inline constexpr command_type
const ga = 249;
29inline constexpr command_type
const sb = 250;
30inline constexpr command_type
const will = 251;
31inline constexpr command_type
const wont = 252;
32inline constexpr command_type
const do_ = 253;
33inline constexpr command_type
const dont = 254;
34inline constexpr command_type
const iac = 255;
41using bytes = std::span<byte const>;
45using byte_storage = std::basic_string<byte>;
52constexpr inline auto bytes_equal = [](bytes
const &lhs,
53 bytes
const &rhs)
noexcept {
54 return std::ranges::equal(lhs, rhs);
60inline byte_storage
operator""_tb(
char const *text,
size_t length)
63 result.reserve(length);
65 for (
auto ch : std::span<char const>{text, length})
67 result.push_back(
static_cast<telnetpp::byte
>(ch));