Telnet++
A C++ library for interacting with Telnet streams
|
An implementation of the server side of an MSDP Telnet option. More...
#include <server.hpp>
Public Member Functions | |
server () | |
Constructor. | |
std::vector< telnetpp::token > | send (std::vector< variable > const &variables) |
Send a list of variables to the remote client. | |
![]() | |
telnetpp::u8 | option () const |
Returns the option code. | |
void | set_activatable () |
Flags the option as remotely activatable. More... | |
std::vector< telnetpp::token > | activate () |
Activates the option; sends a WILL negotiation. | |
std::vector< telnetpp::token > | deactivate () |
Deactivates the option; sends a WONT negotiation. | |
bool | is_active () const |
Returns true iff the option is active. | |
std::vector< telnetpp::token > | negotiate (telnetpp::u8 request) |
Makes a request of the option and returns the response from that request. More... | |
std::vector< telnetpp::token > | subnegotiate (telnetpp::u8stream const &content) |
Send a subnegotiation to the option and returns the response from that subnegotiation. More... | |
Public Attributes | |
boost::signals2::signal< std::vector< telnetpp::token >std::vector< variable > const &), telnetpp::token_combiner > | on_receive |
Register for a signal whenever a list of variables is received from the remote client. More... | |
![]() | |
boost::signals2::signal< std::vector< telnetpp::token >state new_state), token_combiner > | on_state_changed |
A signal that you can connect to in order to detect changes in the state of the option. More... | |
Additional Inherited Members | |
![]() | |
enum | state { inactive, activating, active, deactivating } |
An enumeration of the different states in which this option can be. More... | |
![]() | |
server_option (telnetpp::u8 option) | |
Constructor. More... | |
An implementation of the server side of an MSDP Telnet option.
telnetpp::options::msdp::server::on_receive |
Register for a signal whenever a list of variables is received from the remote client.