Telnet++ 4.0.0.9
A C++ library for interacting with Telnet streams
Loading...
Searching...
No Matches
negotiation_router.hpp
1#pragma once
2
3#include "telnetpp/detail/router.hpp"
4#include "telnetpp/element.hpp"
5#include "telnetpp/negotiation.hpp"
6
7namespace telnetpp::detail {
8
9struct negotiation_router_key_from_message_policy
10{
11 static constexpr negotiation key_from_message(negotiation const &neg)
12 {
13 return neg;
14 }
15};
16
17//* =========================================================================
24class negotiation_router
25 : public router<
26 negotiation,
27 negotiation,
28 void(telnetpp::negotiation),
29 detail::negotiation_router_key_from_message_policy>
30{
31};
32
33} // namespace telnetpp::detail