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/msdp/variable.hpp"
5
7
8//* =========================================================================
10//* =========================================================================
11class TELNETPP_EXPORT client : public telnetpp::client_option
12{
13public:
14 //* =====================================================================
16 //* =====================================================================
17 explicit client(telnetpp::session &sess) noexcept;
18
19 //* =====================================================================
21 //* =====================================================================
22 void send(variable const &var);
23
24 //* =====================================================================
28 //* =====================================================================
29 boost::signals2::signal<void(variable const &)> on_receive;
30
31private:
32 //* =====================================================================
35 //* =====================================================================
36 void handle_subnegotiation(telnetpp::bytes data) override;
37};
38
39} // namespace telnetpp::options::msdp
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 an MSDP Telnet option.
Definition client.hpp:12
boost::signals2::signal< void(variable const &)> on_receive
Register for a signal whenever a list of variables is received from the remote server.
Definition client.hpp:29
An abstraction for a Telnet session.
Definition session.hpp:141
An implementation of the Mud Server Data Protocol.
Definition client.hpp:6
A structure that represents a named value.
Definition variable.hpp:30