3#include "telnetpp/core.hpp" 
    4#include "telnetpp/detail/hash.hpp" 
   21      : request_(request), option_(
option)
 
   24            request == telnetpp::will || request == telnetpp::wont
 
   25            || request == telnetpp::do_ || request == telnetpp::dont);
 
 
   32    [[nodiscard]] 
constexpr negotiation_type 
request() const noexcept
 
 
   40    [[nodiscard]] 
constexpr option_type 
option_code() const noexcept
 
 
   50        telnetpp::detail::hash_combine(seed, request_, option_);
 
 
   54    negotiation_type request_;
 
 
   61constexpr bool operator==(
 
   62    negotiation 
const &lhs, negotiation 
const &rhs) 
noexcept 
   64    return lhs.request() == rhs.request()
 
   65        && lhs.option_code() == rhs.option_code();
 
   71constexpr bool operator<(
 
   72    negotiation 
const &lhs, negotiation 
const &rhs) 
noexcept 
   74    return lhs.request() < rhs.request()
 
   75        || (!(rhs.request() < lhs.request())
 
   76            && lhs.option_code() < rhs.option_code());
 
   83std::ostream &operator<<(std::ostream &out, negotiation 
const &neg);
 
A class that encapsulates a Telnet negotiation.
Definition negotiation.hpp:15
constexpr negotiation(negotiation_type request, option_type option) noexcept
Constructor.
Definition negotiation.hpp:20
constexpr void hash_combine(std::size_t &seed) const
Combine a hash of the object.
Definition negotiation.hpp:48
constexpr option_type option_code() const noexcept
Returns the option code (e.g. echo, naws) of this negotiation.
Definition negotiation.hpp:40
constexpr negotiation_type request() const noexcept
Returns the request (will, wont, do, dont) of this negotiation.
Definition negotiation.hpp:32
An class that encapsulates one side of a Telnet option.
Definition option.hpp:46