Telnet++  3.1.0.2
A C++ library for interacting with Telnet streams
Classes | Typedefs | Functions
telnetpp::options::msdp Namespace Reference

An implementation of the Mud Server Data Protocol. More...

Classes

class  client
 An implementation of the client side of an MSDP Telnet option. More...
 
class  server
 An implementation of the server side of an MSDP Telnet option. More...
 
struct  variable
 A structure that represents a named value. More...
 

Typedefs

using string_value = telnetpp::byte_storage
 
using array_value = boost::container::small_vector< string_value, 4 >
 
using table_value = std::vector< variable >
 
using value_type = std::variant< string_value, array_value, table_value >
 

Functions

TELNETPP_EXPORT bool operator== (variable const &lhs, variable const &rhs)
 Equality operator.
 
TELNETPP_EXPORT bool operator!= (variable const &lhs, variable const &rhs)
 Inequality operator.
 
TELNETPP_EXPORT std::ostream & operator<< (std::ostream &out, variable const &var)
 Stream Output operator.
 

Detailed Description

An implementation of the Mud Server Data Protocol.

Overview
MSDP is used to send arbitrary data between server and client.
There is no difference between the server and client protocols for MSDP: both can send and receive arbitrary data packets. However, it is usually the case that the client sends a limited number of packets requesting or subscribing to various standardized data sources. This is, however, entirely application-specific. See the specification page for more details.
Usage
Create a server or client as appropriate. Install it in a session, activate as normal.
Data is transmitted using a telnetpp::options::msdp::variable. These can be sent using your option's send() function, or you can register for changes using the on_receive signal.
See also
http://tintin.sourceforge.net/msdp/