3 #include "telnetpp/command.hpp" 4 #include "telnetpp/negotiation.hpp" 5 #include "telnetpp/protocol.hpp" 6 #include "telnetpp/subnegotiation.hpp" 7 #include "telnetpp/element.hpp" 8 #include "telnetpp/detail/parse_helper.hpp" 11 namespace telnetpp {
namespace detail {
21 template <
class InputIterator1,
class InputIterator2>
22 std::vector<element> parse(InputIterator1 &begin, InputIterator2 end)
24 detail::parse_temps temps;
26 auto position = begin;
27 while (position != end)
29 detail::parse_helper(temps, *position);
35 if (temps.state == detail::parse_state::idle)
41 return temps.elements;
Definition: byte_converter.hpp:4