Telnet++
A C++ library for interacting with Telnet streams
server.hpp
1 #pragma once
2 
3 #include "telnetpp/server_option.hpp"
4 #include <boost/optional.hpp>
5 #include <utility>
6 
7 namespace telnetpp { namespace options { namespace naws {
8 
9 //* =========================================================================
11 //* =========================================================================
12 class TELNETPP_EXPORT server : public telnetpp::server_option {
13 public :
14  //* =====================================================================
16  //* =====================================================================
17  server();
18 
19  //* =====================================================================
21  //* =====================================================================
22  std::vector<telnetpp::token> set_window_size(u16 width, u16 height);
23 
24 private :
25  //* =====================================================================
28  //* =====================================================================
29  std::vector<telnetpp::token> handle_subnegotiation(
30  u8stream const &content) override;
31 
32  //* =====================================================================
34  //* =====================================================================
35  std::vector<telnetpp::token> report_window_size();
36 
37  boost::optional<std::pair<telnetpp::u16, telnetpp::u16>> window_size_;
38 };
39 
40 }}}
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
An implementation of the server side of the Telnet NAWS option.
Definition: server.hpp:12
Definition: byte_converter.hpp:4