Telnet++ 4.0.0.9
A C++ library for interacting with Telnet streams
Loading...
Searching...
No Matches
client.hpp
1#pragma once
2
3#include "telnetpp/client_option.hpp"
4#include "telnetpp/options/new_environ/protocol.hpp"
5
7
8//* =========================================================================
11//* =========================================================================
12class TELNETPP_EXPORT client : public telnetpp::client_option
13{
14public:
15 //* =====================================================================
17 //* =====================================================================
18 explicit client(telnetpp::session &sess) noexcept;
19
20 //* =====================================================================
23 //* =====================================================================
24 void request_variables(requests const &reqs);
25
26 //* =====================================================================
31 //* =====================================================================
32 boost::signals2::signal<void(response const &rsp)> on_variable_changed;
33
34private:
35 //* =====================================================================
38 //* =====================================================================
39 void handle_subnegotiation(telnetpp::bytes data) override;
40};
41
42} // namespace telnetpp::options::new_environ
A class that represents a Telnet option's client side. That is, the side that receives WILL and WONT ...
Definition client_option.hpp:35
An implementation of the client side of the Telnet New-Environ option.
Definition client.hpp:13
boost::signals2::signal< void(response const &rsp)> on_variable_changed
Signal called whenever an environment variable is updated.
Definition client.hpp:32
An abstraction for a Telnet session.
Definition session.hpp:141
An implementation of the Telnet Environment option.
Definition client.hpp:6
A response that is received from the remote server.
Definition protocol.hpp:33