Telnet++
A C++ library for interacting with Telnet streams
Public Member Functions | List of all members
telnetpp::byte_converter Class Reference

A class that can convert from a std::vector<telnetpp::stream_token> to a telnetpp::u8stream. More...

#include <byte_converter.hpp>

Public Member Functions

telnetpp::u8stream send (std::vector< telnetpp::stream_token > const &tokens)
 Convert the tokens into a stream of bytes. More...
 

Detailed Description

A class that can convert from a std::vector<telnetpp::stream_token> to a telnetpp::u8stream.

Use this class at the bottom of your protocol stack (after compression, if you are using that) to collapse the output from the vector of stream_tokens to a straightforward u8stream. Any Boost.Any instances in the input will be discarded since they should all have been consumed by now anyway.

Member Function Documentation

u8stream telnetpp::byte_converter::send ( std::vector< telnetpp::stream_token > const &  tokens)

Convert the tokens into a stream of bytes.

Takes the input set of tokens and converts them into a single array of bytes, which can be transmitted to a remote target. Any non- u8stream elements are discarded.


The documentation for this class was generated from the following files: