Telnet++ 4.0.0.9
A C++ library for interacting with Telnet streams
Loading...
Searching...
No Matches
subnegotiation_router.hpp
1#pragma once
2
3#include "telnetpp/detail/router.hpp"
4#include "telnetpp/element.hpp"
5#include "telnetpp/subnegotiation.hpp"
6
7namespace telnetpp::detail {
8
9struct subnegotiation_router_key_from_message_policy
10{
11 static constexpr option_type key_from_message(subnegotiation const &sub)
12 {
13 return sub.option();
14 }
15};
16
17class subnegotiation_router
18 : public router<
19 option_type,
20 subnegotiation,
21 void(telnetpp::subnegotiation),
22 detail::subnegotiation_router_key_from_message_policy>
23{
24};
25
26} // namespace telnetpp::detail