3 #include "telnetpp/options/new_environ/protocol.hpp"
4 #include "telnetpp/server_option.hpp"
25 void set_variable(telnetpp::bytes name, telnetpp::bytes value);
30 void delete_variable(telnetpp::bytes name);
35 void set_user_variable(telnetpp::bytes name, telnetpp::bytes value);
40 void delete_user_variable(telnetpp::bytes name);
43 using variable_storage =
44 std::map<telnetpp::byte_storage, telnetpp::byte_storage>;
46 variable_storage variables_;
47 variable_storage user_variables_;
53 void handle_subnegotiation(telnetpp::bytes data)
override;
58 void broadcast_variable_update(
59 variable_type type, telnetpp::bytes name, telnetpp::bytes value);
64 void broadcast_variable_deletion(
variable_type type, telnetpp::bytes name);
70 telnetpp::byte_storage &storage,
72 telnetpp::bytes name);
78 telnetpp::byte_storage &storage,
81 telnetpp::bytes value);
An implementation of the server side of the Telnet New-Environ option.
Definition: server.hpp:15
A class that represents a Telnet option's server side. That is, the side that receives DO and DONT ne...
Definition: server_option.hpp:35
An abstraction for a Telnet session.
Definition: session.hpp:141
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