Telnet++
A C++ library for interacting with Telnet streams
server.hpp
1 #pragma once
2 
3 #include "telnetpp/server_option.hpp"
4 
5 namespace telnetpp { namespace options { namespace mccp {
6 
7 //* =========================================================================
10 //* =========================================================================
11 class TELNETPP_EXPORT server : public telnetpp::server_option
12 {
13 public :
14  //* =====================================================================
16  //* =====================================================================
17  server();
18 
19  //* =====================================================================
24  //* =====================================================================
25  std::vector<telnetpp::token> begin_compression();
26 
27  //* =====================================================================
33  //* =====================================================================
34  std::vector<telnetpp::token> end_compression();
35 
36 private :
37  //* =====================================================================
40  //* =====================================================================
41  std::vector<telnetpp::token> handle_subnegotiation(
42  telnetpp::u8stream const &content) override;
43 
44  bool compression_requested_;
45 };
46 
47 }}}
A collection of bytes that models the Standard Library&#39;s Container concept.
A class that represents a Telnet option&#39;s server side.
Definition: server_option.hpp:34
A server option responsible for negotiating the server part of the MCCP protocol. ...
Definition: server.hpp:11
Definition: byte_converter.hpp:4