00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef RshProtocol_h
00023 #define RshProtocol_h
00024
00025 #include "RemoteProtocol.h"
00026
00027
00028 class RshProtocol : public RemoteProtocol
00029 {
00030 const bool is_server;
00031
00032 std::string used_shell;
00033 std::string loginname;
00034 std::string componentname;
00035
00040 bool at_password_prompt;
00041
00042 public:
00052 RshProtocol (bool is_server, std::string loginname, std::string hostname,
00053 std::string componentname, std::string shell);
00054
00055 callStatus callComponent (std::string password = "", bool passwd_supplied = false);
00056
00060 bool doesEcho () const;
00061
00062 };
00063
00064
00065 #endif // RshProtocol_h