diff options
author | lado <herrlado@gmail.com> | 2011-11-06 15:09:56 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-06 15:09:56 +0100 |
commit | 8996a0601d2e8708209b5b9d4d4c1b397cbf8056 (patch) | |
tree | e108c3fd86c2661f90e26e235c9990d4e4e660c0 /vdr-vdrmanager/vdrmanagerthread.cpp | |
parent | 3248a802c6b4559416fbea3a1ef84145dc1e66f9 (diff) | |
download | vdr-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.cpp | 5 |
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 |