Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
negotiation_router.hpp
1 #pragma once
2 
3 #include "telnetpp/detail/router.hpp"
4 #include "telnetpp/element.hpp"
5 #include "telnetpp/negotiation.hpp"
6 
7 namespace telnetpp::detail {
8 
9 struct negotiation_router_key_from_message_policy
10 {
11  static negotiation key_from_message(negotiation const &neg)
12  {
13  return neg;
14  }
15 };
16 
17 //* =========================================================================
24 class 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