From 8996a0601d2e8708209b5b9d4d4c1b397cbf8056 Mon Sep 17 00:00:00 2001 From: lado Date: Sun, 6 Nov 2011 15:09:56 +0100 Subject: new option forceCheckSvdrp getopts for arg parsing --- vdr-vdrmanager/vdrmanagerthread.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'vdr-vdrmanager/vdrmanagerthread.cpp') diff --git a/vdr-vdrmanager/vdrmanagerthread.cpp b/vdr-vdrmanager/vdrmanagerthread.cpp index fc72cf1..7c72444 100644 --- a/vdr-vdrmanager/vdrmanagerthread.cpp +++ b/vdr-vdrmanager/vdrmanagerthread.cpp @@ -8,11 +8,12 @@ #include "select.h" #include "helpers.h" -cAndroVdrThread::cAndroVdrThread(int port, const char * password) +cAndroVdrThread::cAndroVdrThread(int port, const char * password, bool forceCheckSvdrp) { select = NULL; this->port = port; this->password = password; + this->forceCheckSvdrp = forceCheckSvdrp; } cAndroVdrThread::~cAndroVdrThread() @@ -42,7 +43,7 @@ bool cAndroVdrThread::Init() // create server socket cVdrmanagerServerSocket * sock = new cVdrmanagerServerSocket(); - if (sock == NULL || !sock->Create(port, password)) + if (sock == NULL || !sock->Create(port, password, forceCheckSvdrp)) return false; // register server socket -- cgit v1.2.3