Added a SCAN command into the SVDRP interface.

This commit is contained in:
Rolf Ahrenberg 2014-12-18 00:25:01 +02:00
parent 9cace319a3
commit 4b714196f3
1 changed files with 7 additions and 1 deletions

View File

@ -315,6 +315,8 @@ const char **cPluginSatip::SVDRPHelpPages(void)
" Toggles between bit or byte information mode.\n",
"LIST\n"
" Lists active SAT>IP servers.\n",
"SCAN\n"
" Scans active SAT>IP servers.\n",
"STAT\n"
" Lists status information of SAT>IP devices.\n",
"CONT\n"
@ -372,9 +374,13 @@ cString cPluginSatip::SVDRPCommand(const char *commandP, const char *optionP, in
}
else {
replyCodeP = 550; // Requested action not taken
return cString("No SATIP devices detected!");
return cString("No SATIP servers detected!");
}
}
else if (strcasecmp(commandP, "SCAN") == 0) {
cSatipDiscover::GetInstance()->TriggerScan();
return cString("SATIP server scan requested");
}
else if (strcasecmp(commandP, "STAT") == 0) {
return cSatipDevice::GetSatipStatus();
}