1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00

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

View File

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