summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/vdrmanagerthread.cpp
diff options
context:
space:
mode:
authorlado <herrlado@gmail.com>2011-11-06 15:09:56 +0100
committerlado <herrlado@gmail.com>2011-11-06 15:09:56 +0100
commit8996a0601d2e8708209b5b9d4d4c1b397cbf8056 (patch)
treee108c3fd86c2661f90e26e235c9990d4e4e660c0 /vdr-vdrmanager/vdrmanagerthread.cpp
parent3248a802c6b4559416fbea3a1ef84145dc1e66f9 (diff)
downloadvdr-manager-8996a0601d2e8708209b5b9d4d4c1b397cbf8056.tar.gz
vdr-manager-8996a0601d2e8708209b5b9d4d4c1b397cbf8056.tar.bz2
new option forceCheckSvdrp
getopts for arg parsing
Diffstat (limited to 'vdr-vdrmanager/vdrmanagerthread.cpp')
-rw-r--r--vdr-vdrmanager/vdrmanagerthread.cpp5
1 files changed, 3 insertions, 2 deletions
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