Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
element.hpp
1 #pragma once
2 
3 #include "telnetpp/command.hpp" // IWYU pragma: export
4 #include "telnetpp/core.hpp"
5 #include "telnetpp/negotiation.hpp" // IWYU pragma: export
6 #include "telnetpp/subnegotiation.hpp" // IWYU pragma: export
7 
8 #include <iosfwd>
9 #include <variant>
10 
11 namespace telnetpp {
12 
13 //* =========================================================================
18 //* =========================================================================
19 using element = std::variant<bytes, negotiation, subnegotiation, command>;
20 
21 //* =========================================================================
23 //* =========================================================================
24 using elements = gsl::span<element const>;
25 
26 //* =========================================================================
28 //* =========================================================================
29 TELNETPP_EXPORT
30 std::ostream &operator<<(std::ostream &out, telnetpp::element const &elem);
31 
32 } // namespace telnetpp
A common type that can contain any Telnet operation, such as a command, negotiation,...