Add new remote command:

- hosts: display connected hosts, or NONE if disconnected (surrounded with double quotes).
This commit is contained in:
Daniel Caujolle-Bert
2022-01-21 08:13:24 +00:00
parent 5aa6e54130
commit 6c36e29f88
6 changed files with 44 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ public:
int run();
void buildNetworkStatusString(std::string &str);
void buildNetworkHostsString(std::string &str);
private:
CConf m_conf;
@@ -156,6 +157,7 @@ private:
void remoteControl();
void processEnableCommand(CDMRNetwork* network, const std::string& name, bool& mode, bool enabled);
void buildNetworkStatusNetworkString(std::string &str, const std::string& name, CDMRNetwork* network, bool enabled);
void buildNetworkHostNetworkString(std::string &str, const std::string& name, CDMRNetwork* network);
};
#endif