3 #include "telnetpp/client_option.hpp"
4 #include "telnetpp/detail/negotiation_router.hpp"
5 #include "telnetpp/detail/subnegotiation_router.hpp"
6 #include "telnetpp/element.hpp"
7 #include "telnetpp/server_option.hpp"
9 namespace telnetpp::detail {
14 void register_client_option(
16 negotiation_router &neg_router,
17 subnegotiation_router &sub_router);
22 void register_server_option(
24 negotiation_router &neg_router,
25 subnegotiation_router &sub_router);
31 template <
class NegotiableOption>
32 void register_route_from_negotiation_to_option(
33 negotiation_router &route,
34 negotiation_type request,
35 NegotiableOption &option)
38 negotiation{request, option.option_code()},
40 return option.negotiate(request);
47 template <
class SubnegotiableOption>
48 void register_route_from_subnegotiation_to_option(
49 subnegotiation_router &route, SubnegotiableOption &option)
53 return option.subnegotiate(sub.content());
A class that represents a Telnet option's client side. That is, the side that receives WILL and WONT ...
Definition: client_option.hpp:35
A class that encapsulates a Telnet negotiation.
Definition: negotiation.hpp:15
A class that represents a Telnet option's server side. That is, the side that receives DO and DONT ne...
Definition: server_option.hpp:35
A class that encapsulates a Telnet subnegotiation.
Definition: subnegotiation.hpp:14