Telnet handler base class.
More...
#include <senf/Utils/Termlib/Telnet.hh>
|
typedef ClientSocketHandle< senf::MakeSocketPolicy< ConnectedCommunicationPolicy, StreamFramingPolicy, ReadablePolicy, WriteablePolicy >::policy > | Handle |
| Type of socket handle required. More...
|
|
typedef unsigned char | option_type |
| Type of telnet option numbers. More...
|
|
static unsigned const | DEFAULT_REQUEST_TIMEOUT_MS = 500u |
|
| BaseTelnetProtocol (Handle handle) |
| Construct telnet protocol handler. More...
|
|
| BaseTelnetProtocol () |
| Provided for TelnetHandler mixins only. More...
|
|
virtual | ~BaseTelnetProtocol () |
|
template<class Handler > |
void | registerHandler (Handler *h, bool request=true) |
| Register a TelnetHandler. More...
|
|
void | incrementRequestCounter () |
| Increment request counter. More...
|
|
void | decrementRequestCounter () |
| Decrement request counter. More...
|
|
bool | requestsPending () |
| true , if there are pending requests More...
|
|
virtual void | v_setupComplete ()=0 |
| Called, when no further requests are pending. More...
|
|
virtual void | v_charReceived (char c)=0 |
| Called whenever a data character is received. More...
|
|
virtual void | v_eof ()=0 |
| Called on input EOF. More...
|
|
virtual void | v_handleNOP () |
| Called, when the peer sends a NOP. More...
|
|
virtual void | v_handleBRK () |
| Called, when the peer sends a BReaK. More...
|
|
virtual void | v_handleIP () |
| Called, when the peer sends an InterruptProcess. More...
|
|
virtual void | v_handleAO () |
| Called, when the peer sends an AbortOutput. More...
|
|
virtual void | v_handleAYT () |
| Called, when the peer sends an AreYouThere. More...
|
|
virtual void | v_handleEC () |
| Called, when the peer sends an EraseCharacter. More...
|
|
virtual void | v_handleEL () |
| Called, when the peer sends an EraseLine. More...
|
|
virtual void | v_handleGA () |
| Called, when the peer sends a GoAhead. More...
|
|
Telnet handler base class.
- See also
- BaseTelnetProtocol
Definition at line 333 of file Telnet.hh.
◆ ~TelnetHandler()
virtual senf::term::BaseTelnetProtocol::TelnetHandler::~TelnetHandler |
( |
| ) |
|
|
virtual |
◆ v_handleOptionParameters()
virtual void senf::term::BaseTelnetProtocol::TelnetHandler::v_handleOptionParameters |
( |
std::string const & |
data | ) |
|
|
pure virtual |
Called, whenever a subnegotiation is received.
◆ v_init()
virtual void senf::term::BaseTelnetProtocol::TelnetHandler::v_init |
( |
| ) |
|
|
pure virtual |
Called, after option has been enabled.
The documentation for this struct was generated from the following file: