Telnet++
A C++ library for interacting with Telnet streams
subnegotiation.hpp
1 #pragma once
2 
3 #include "telnetpp/core.hpp"
4 #include <iosfwd>
5 #include <vector>
6 
7 namespace telnetpp {
8 
9 //* =========================================================================
11 //* =========================================================================
12 class TELNETPP_EXPORT subnegotiation
13 {
14 public :
15  //* =====================================================================
17  //* =====================================================================
18  subnegotiation(u8 option, u8stream content);
19 
20  //* =====================================================================
22  //* =====================================================================
23  u8 option() const;
24 
25  //* =====================================================================
27  //* =====================================================================
28  u8stream const &content() const;
29 
30 private :
31  u8 option_;
32  u8stream content_;
33 };
34 
35 //* =========================================================================
37 //* =========================================================================
38 TELNETPP_EXPORT
39 bool operator==(subnegotiation const &lhs, subnegotiation const &rhs);
40 
41 //* =========================================================================
43 //* =========================================================================
44 TELNETPP_EXPORT
45 std::ostream &operator<<(std::ostream &out, subnegotiation const &cmd);
46 
47 }
A class that encapsulates a Telnet subnegotiation.
Definition: subnegotiation.hpp:12
A collection of bytes that models the Standard Library&#39;s Container concept.
Definition: byte_converter.hpp:4