#include <RemoteProtocol.h>
Inheritance diagram for RemoteProtocol:
Public Types | |
enum | callStatus { RP_OK, RP_PASSWD, RP_ERROR } |
Public Member Functions | |
RemoteProtocol (std::string commandline, bool use_pty=false) | |
virtual callStatus | callComponent (std::string password="", bool passwd_supplied=false)=0 |
virtual bool | doesEcho () const=0 |
Protected Member Functions | |
int | expectOneOf (const std::string *strings, int number_strings, int maxread) |
|
Returns values of callComponent. |
|
Initializes the remote protocol. Starts the external program like telnet, ssh, su, rsh, ...
|
|
Tries to do the handshake, this is supply password, enter loginname and answer other interactive questions. Also starts the Y2 component on the other machine.
Implemented in RloginProtocol, RshProtocol, SudoProtocol, SuProtocol, and TelnetProtocol. |
|
Determines, whether output to the protocol program (telnet, rsh, ...) is echoed. Implemented in RloginProtocol, RshProtocol, SudoProtocol, SuProtocol, and TelnetProtocol. |
|
Reads from the input (i.e. output of the login program) characters until one of a list of given strings will match the tail of the read characters.
|