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