Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
server.hpp
1 #pragma once
2 
3 #include "telnetpp/options/basic_server.hpp"
4 #include "telnetpp/options/mccp/detail/protocol.hpp"
5 
6 namespace telnetpp::options::mccp {
7 
8 class codec;
9 
10 //* =========================================================================
13 //* =========================================================================
14 class TELNETPP_EXPORT server
15  : public telnetpp::options::basic_server<detail::option>
16 {
17 public:
18  //* =====================================================================
20  //* =====================================================================
21  explicit server(telnetpp::session &sess, codec &cdc);
22 
23  //* =====================================================================
28  //* =====================================================================
29  void start_compression();
30 
31  //* =====================================================================
37  //* =====================================================================
38  void finish_compression();
39 
40 private:
41  codec &codec_;
42  bool compression_active_;
43 };
44 
45 } // namespace telnetpp::options::mccp
A class template that generates basic classes that handle no subnegotiations; they merely exist for e...
Definition: basic_server.hpp:14
Represents an object that can transform (encode or decode) arbitrary byte sequences....
Definition: codec.hpp:17
A server option responsible for negotiating the server part of the MCCP protocol.
Definition: server.hpp:16
An abstraction for a Telnet session.
Definition: session.hpp:141
An implementation of the Mud Client Compression Protocol.
Definition: client.hpp:5