Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
client.hpp
1 #pragma once
2 
3 #include "telnetpp/client_option.hpp"
4 
5 #include <boost/signals2.hpp>
6 
8 
9 //* =========================================================================
12 //* =========================================================================
13 class TELNETPP_EXPORT client : public telnetpp::client_option
14 {
15 public:
16  //* =====================================================================
18  //* =====================================================================
19  explicit client(telnetpp::session &sess);
20 
21  //* =====================================================================
23  //* =====================================================================
24  void request_terminal_type();
25 
26  boost::signals2::signal<void(telnetpp::bytes)> on_terminal_type;
27 
28 private:
29  //* =====================================================================
32  //* =====================================================================
33  void handle_subnegotiation(telnetpp::bytes data) override;
34 };
35 
36 } // namespace telnetpp::options::terminal_type
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 Terminal Type option.
Definition: client.hpp:14
An abstraction for a Telnet session.
Definition: session.hpp:141
An implementation of the standard Telnet Terminal-Type option.
Definition: client.hpp:7