3#include "telnetpp/core.hpp"
20 : option_(std::move(
option)), content_(std::move(content))
27 [[nodiscard]]
constexpr option_type
option() const noexcept
35 [[nodiscard]]
constexpr bytes
content() const noexcept
48constexpr inline bool operator==(
49 subnegotiation
const &lhs, subnegotiation
const &rhs)
noexcept
51 return lhs.option() == rhs.option()
52 && telnetpp::bytes_equal(lhs.content(), rhs.content());
59std::ostream &operator<<(std::ostream &out, subnegotiation
const &sub);
An class that encapsulates one side of a Telnet option.
Definition option.hpp:46
A class that encapsulates a Telnet subnegotiation.
Definition subnegotiation.hpp:14
constexpr subnegotiation(option_type option, bytes content) noexcept
Constructor.
Definition subnegotiation.hpp:19
constexpr bytes content() const noexcept
Returns the content for this subnegotiation.
Definition subnegotiation.hpp:35
constexpr option_type option() const noexcept
Returns the option for this subnegotiation.
Definition subnegotiation.hpp:27