A class that represents a Telnet option's client side. That is, the side that receives WILL and WONT negotiations and sends DO and DONT negotiations.
More...
#include <client_option.hpp>
|
constexpr | client_option (telnetpp::session &sess, telnetpp::option_type code) noexcept |
|
A class that represents a Telnet option's client side. That is, the side that receives WILL and WONT negotiations and sends DO and DONT negotiations.
- Server vs. Client
- Note that the usage of client in this context may disagree with a particular option's RFC specification. The determination of what is a client and what is a server is not rigorously applies throughout the RFCs, so consider this merely an implementation detail of this library.
- Usage
- client_option provides a general interface to enable the implementation of the client sides of all Telnet options. There are two customization points that must be filled in before an implementation is complete:
- the derived class must call the constructor, passing in a value that is the Option Code for the feature being implemented.
- the derived class must implement the handle_subnegotiation function. This is called whenever data specific to the option passes through the Telnet layer.
A final third customization point is the on_state_changed signal, to which a user can connect to have functionality executed when the option changes state.
- See also
- https://tools.ietf.org/html/std8
The documentation for this class was generated from the following file: