From 4b714196f32edd02c18cd86f3c413222e7fbcbb8 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Thu, 18 Dec 2014 00:25:01 +0200 Subject: [PATCH] Added a SCAN command into the SVDRP interface. --- satip.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/satip.c b/satip.c index 622a3e9..d7a483c 100644 --- a/satip.c +++ b/satip.c @@ -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(); }