Telnet++ 4.0.0.9
A C++ library for interacting with Telnet streams
Loading...
Searching...
No Matches
protocol.hpp
1#pragma once
2
3#include "telnetpp/core.hpp"
4
5#include <optional>
6
8
9//* =========================================================================
11//* =========================================================================
12enum class variable_type
13{
14 var,
15 uservar
16};
17
18//* =========================================================================
20//* =========================================================================
21struct request
22{
23 variable_type type;
24 telnetpp::byte_storage name;
25};
26
27using requests = std::span<request const>;
28
29//* =========================================================================
31//* =========================================================================
33{
34 variable_type type;
35 telnetpp::byte_storage name;
36 std::optional<telnetpp::byte_storage> value;
37};
38
39using responses = std::span<response const>;
40
41} // namespace telnetpp::options::new_environ
An implementation of the Telnet Environment option.
Definition client.hpp:6
variable_type
An enumeration of the type of variables that NEW_ENVIRON handles.
Definition protocol.hpp:13
A request that is made of the remote server.
Definition protocol.hpp:22
A response that is received from the remote server.
Definition protocol.hpp:33