Telnet++ 4.0.0.9
A C++ library for interacting with Telnet streams
Loading...
Searching...
No Matches
server.hpp
1#pragma once
2
3#include "telnetpp/options/msdp/variable.hpp"
4#include "telnetpp/server_option.hpp"
5
7
8//* =========================================================================
10//* =========================================================================
11class TELNETPP_EXPORT server : public telnetpp::server_option
12{
13public:
14 //* =====================================================================
16 //* =====================================================================
17 explicit server(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
An implementation of the server side of an MSDP Telnet option.
Definition server.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 server.hpp:29
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 Mud Server Data Protocol.
Definition client.hpp:6
A structure that represents a named value.
Definition variable.hpp:30