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/basic_server.hpp"
4#include "telnetpp/options/mccp/detail/protocol.hpp"
5
7
8class codec;
9
10//* =========================================================================
13//* =========================================================================
14class TELNETPP_EXPORT server
15 : public telnetpp::options::basic_server<detail::option>
16{
17public:
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
40private:
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:18
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