diff options
author | lado <herrlado@gmail.com> | 2011-11-06 16:33:12 +0100 |
---|---|---|
committer | lado <herrlado@gmail.com> | 2011-11-06 16:33:12 +0100 |
commit | 5d6eb0f2b28b3a385ba301ec01b3622558e5974d (patch) | |
tree | 58830c3f83f51f0565349d7d422d24d2aae993b5 /vdr-vdrmanager/sock.h | |
parent | 8996a0601d2e8708209b5b9d4d4c1b397cbf8056 (diff) | |
download | vdr-manager-5d6eb0f2b28b3a385ba301ec01b3622558e5974d.tar.gz vdr-manager-5d6eb0f2b28b3a385ba301ec01b3622558e5974d.tar.bz2 |
accept client by svdrp, if a) it was forced via command lines -s
b) if no password was specified with -p
Diffstat (limited to 'vdr-vdrmanager/sock.h')
-rw-r--r-- | vdr-vdrmanager/sock.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vdr-vdrmanager/sock.h b/vdr-vdrmanager/sock.h index 260efed..0234afc 100644 --- a/vdr-vdrmanager/sock.h +++ b/vdr-vdrmanager/sock.h @@ -16,8 +16,10 @@ class cVdrmanagerSocket protected: int sock; const char * password; + bool forceCheckSvdrp; protected: cVdrmanagerSocket(); + bool IsPasswordSet(); public: virtual ~cVdrmanagerSocket(); void Close(); @@ -56,7 +58,7 @@ class cVdrmanagerServerSocket : public cVdrmanagerSocket public: cVdrmanagerServerSocket(); virtual ~cVdrmanagerServerSocket(); - bool Create(int port, const char * password); + bool Create(int port, const char * password, bool forceCheckSvdrp); cVdrmanagerClientSocket * Accept(); }; |