#include <senf/Utils/Termlib/TelnetTerminal.hh>

This class provides a telnet server implementation implementing the AbstractTerminal interface.
TelnetTerminal provides one additional callback which needs to be implemented in a derived class: v_setupFailed(). This member will be called, when not all required telnet options are supported by the telnet client. In this case, the communication will be switched back into line-oriented mode and v_setupFailed() is called.
Definition at line 52 of file TelnetTerminal.hh.
Public Member Functions |
|
| TelnetTerminal () | |
AbstractTerminal interface implementation |
|
| virtual void | setCallbacks (AbstractTerminal::Callbacks &cb) |
| Register terminal callbacks. |
|
| virtual std::string | terminalType () |
| Get the terminal type. |
|
| virtual unsigned | width () const |
| Get current terminal window width. |
|
| virtual unsigned | height () const |
| Get current terminal window height. |
|
| virtual void | write (char ch) |
| Write character to terminal. |
|
Protected Member Functions |
|
| virtual void | v_setupFailed ()=0 |
| Called when the telnet setup has failed. |
|
| senf::term::TelnetTerminal:: | ||||
| TelnetTerminal | () | |||
Definition at line 35 of file TelnetTerminal.cc.
| unsigned senf::term::TelnetTerminal:: | ||||
| height | () | |||
Get current terminal window height.
Implements senf::term::AbstractTerminal.
Definition at line 59 of file TelnetTerminal.cc.
| void senf::term::TelnetTerminal:: | ||||
| setCallbacks | ( | AbstractTerminal::Callbacks & | cb | ) |
Register terminal callbacks.
Implements senf::term::AbstractTerminal.
Definition at line 43 of file TelnetTerminal.cc.
| std::string senf::term::TelnetTerminal:: | ||||
| terminalType | () | |||
Get the terminal type.
Implements senf::term::AbstractTerminal.
Definition at line 48 of file TelnetTerminal.cc.
| virtual void senf::term::TelnetTerminal:: | ||||
| v_setupFailed | () | |||
Called when the telnet setup has failed.
| unsigned senf::term::TelnetTerminal:: | ||||
| width | () | |||
Get current terminal window width.
Implements senf::term::AbstractTerminal.
Definition at line 53 of file TelnetTerminal.cc.
| void senf::term::TelnetTerminal:: | ||||
| write | ( | char | ch | ) |
Write character to terminal.
Implements senf::term::AbstractTerminal.
Definition at line 65 of file TelnetTerminal.cc.