Telnet++
A C++ library for interacting with Telnet streams
command_router.hpp
1 #pragma once
2 
3 #include "telnetpp/detail/router.hpp"
4 #include "telnetpp/command.hpp"
5 #include "telnetpp/element.hpp"
6 
7 namespace telnetpp { namespace detail {
8 
9 struct command_router_key_from_message_policy
10 {
11  static command key_from_message(command const &cmd)
12  {
13  return cmd;
14  }
15 };
16 
17 class command_router
18  : public router<
19  command,
20  command,
21  std::vector<token>,
22  detail::command_router_key_from_message_policy
23  >
24 {
25 };
26 
27 }}
Definition: byte_converter.hpp:4