summaryrefslogtreecommitdiff
path: root/vdr-androvdr/select.h
diff options
context:
space:
mode:
authorbju <bju@maxi.fritz.box>2011-03-31 00:39:54 +0200
committerbju <bju@maxi.fritz.box>2011-03-31 00:39:54 +0200
commit1f38710cbed1e6fd6507376e3cb5c5b3c509de39 (patch)
treeb1239d478248453a5f38e947d340ff81e9889f08 /vdr-androvdr/select.h
parent99c8ef0c1bd6551bbb39658c0c7fe2a4e0b09e3f (diff)
downloadvdr-manager-1f38710cbed1e6fd6507376e3cb5c5b3c509de39.tar.gz
vdr-manager-1f38710cbed1e6fd6507376e3cb5c5b3c509de39.tar.bz2
Renamed from androvdr to vdrmanager
Diffstat (limited to 'vdr-androvdr/select.h')
-rw-r--r--vdr-androvdr/select.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/vdr-androvdr/select.h b/vdr-androvdr/select.h
deleted file mode 100644
index fbdeb02..0000000
--- a/vdr-androvdr/select.h
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * encapsulated poll
- */
-
-#ifndef _VDRMON_SELECT
-#define _VDRMON_SELECT
-
-#include <string>
-#include <sys/select.h>
-#include "sock.h"
-#include "handler.h"
-
-struct node;
-class cSelect
-{
-private:
- node * clientsockets;
- int clientsocketcount;
- cVdrmanagerServerSocket * serversocket;
- cHandler * handler;
- struct pollfd * pollfds;
- bool stopped;
- time_t nexttimer;
- time_t shutdown;
-public:
- cSelect();
- virtual ~cSelect();
- void DispatchVdrEvent(string event);
- void SetServerSocket(cVdrmanagerServerSocket * sock);
- void AddClientSocket(cVdrmanagerClientSocket * sock);
- void RemoveClientSocket(cVdrmanagerClientSocket * sock);
- bool Action();
- bool Stop();
-private:
- void CreatePollfds();
- cVdrmanagerClientSocket * GetClientSocket(int fd);
- bool Poll();
- void NotifyClients(string event);
-};
-
-#endif