summaryrefslogtreecommitdiff
path: root/vdr-vdrmanager/select.h
diff options
context:
space:
mode:
authorbju <bju@maxi.fritz.box>2014-01-22 02:28:34 +0100
committerbju <bju@maxi.fritz.box>2014-01-22 02:28:34 +0100
commit321bebe669a5aafc2c4ff0e9f59e60de2fa79bac (patch)
treef8b81b463027a60481f8f41939eaa5a18824ce19 /vdr-vdrmanager/select.h
parentbc2c9e64787d4682bd9f3a3340f8b46497f63bb3 (diff)
downloadvdr-manager-321bebe669a5aafc2c4ff0e9f59e60de2fa79bac.tar.gz
vdr-manager-321bebe669a5aafc2c4ff0e9f59e60de2fa79bac.tar.bz2
http://projects.vdr-developer.org/issues/1267:
- some fixes on client side certificate validation - added SSL server side support to the plugin
Diffstat (limited to 'vdr-vdrmanager/select.h')
-rw-r--r--vdr-vdrmanager/select.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/vdr-vdrmanager/select.h b/vdr-vdrmanager/select.h
index fbdeb02..2a7f5ba 100644
--- a/vdr-vdrmanager/select.h
+++ b/vdr-vdrmanager/select.h
@@ -7,7 +7,8 @@
#include <string>
#include <sys/select.h>
-#include "sock.h"
+#include "clientsock.h"
+#include "serversock.h"
#include "handler.h"
struct node;
@@ -17,6 +18,7 @@ private:
node * clientsockets;
int clientsocketcount;
cVdrmanagerServerSocket * serversocket;
+ cVdrmanagerServerSocket * sslServersocket;
cHandler * handler;
struct pollfd * pollfds;
bool stopped;
@@ -26,13 +28,13 @@ public:
cSelect();
virtual ~cSelect();
void DispatchVdrEvent(string event);
- void SetServerSocket(cVdrmanagerServerSocket * sock);
+ void SetServerSockets(cVdrmanagerServerSocket * sock, cVdrmanagerServerSocket * sslSock);
void AddClientSocket(cVdrmanagerClientSocket * sock);
void RemoveClientSocket(cVdrmanagerClientSocket * sock);
bool Action();
bool Stop();
private:
- void CreatePollfds();
+ int CreatePollfds();
cVdrmanagerClientSocket * GetClientSocket(int fd);
bool Poll();
void NotifyClients(string event);