Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
All Classes Namespaces Functions Variables Enumerations Pages
protocol.hpp
1 #pragma once
2 
3 #include "telnetpp/core.hpp"
4 
5 #include <optional>
6 
8 
9 //* =========================================================================
11 //* =========================================================================
12 enum class variable_type
13 {
14  var,
15  uservar
16 };
17 
18 //* =========================================================================
20 //* =========================================================================
21 struct request
22 {
23  variable_type type;
24  telnetpp::byte_storage name;
25 };
26 
27 using requests = gsl::span<request const>;
28 
29 //* =========================================================================
31 //* =========================================================================
32 struct response
33 {
34  variable_type type;
35  telnetpp::byte_storage name;
36  std::optional<telnetpp::byte_storage> value;
37 };
38 
39 using responses = gsl::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