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
5#include <boost/signals2.hpp>
6
8
9//* =========================================================================
11//* =========================================================================
12class TELNETPP_EXPORT client : public telnetpp::client_option
13{
14public:
15 using window_dimension = std::uint16_t;
16
17 //* =====================================================================
19 //* =====================================================================
20 explicit client(telnetpp::session &sess) noexcept;
21
22 boost::signals2::signal<void(window_dimension, window_dimension)>
23 on_window_size_changed; // NOLINT
24
25private:
26 //* =====================================================================
29 //* =====================================================================
30 void handle_subnegotiation(telnetpp::bytes content) override;
31};
32
33} // namespace telnetpp::options::naws
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 NAWS option.
Definition client.hpp:13
An abstraction for a Telnet session.
Definition session.hpp:141
An implementation of the standard Telnet Negotiate About Window Size option.
Definition client.hpp:7