The SVDRP port now accepts multiple concurrent connections

This commit is contained in:
Klaus Schmidinger
2015-04-29 13:10:06 +02:00
parent b6af7a9cf9
commit 2b9e988dd5
6 changed files with 221 additions and 147 deletions

View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: interface.h 1.31 2004/05/01 11:11:13 kls Exp $
* $Id: interface.h 4.1 2015/04/28 11:15:11 kls Exp $
*/
#ifndef __INTERFACE_H
@@ -13,17 +13,14 @@
#include "config.h"
#include "remote.h"
#include "skins.h"
#include "svdrp.h"
class cInterface {
private:
bool interrupted;
cSVDRP *SVDRP;
bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu);
public:
cInterface(int SVDRPport = 0);
cInterface(void);
~cInterface();
bool HasSVDRPConnection(void) { return SVDRP && SVDRP->HasConnection(); }
void Interrupt(void) { interrupted = true; }
eKeys GetKey(bool Wait = true);
eKeys Wait(int Seconds = 0, bool KeepChar = false);