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:
parent
9cace319a3
commit
4b714196f3
8
satip.c
8
satip.c
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user