summaryrefslogtreecommitdiff
path: root/server/server.h
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-12-30 22:43:55 +0000
committerlordjaxom <lordjaxom>2004-12-30 22:43:55 +0000
commit302fa2e67276bd0674e81e2a9a01b9e91dd45d8c (patch)
treea454884a16e0ffa48b5ce3e4ce1a66eb874a9de0 /server/server.h
downloadvdr-plugin-streamdev-302fa2e67276bd0674e81e2a9a01b9e91dd45d8c.tar.gz
vdr-plugin-streamdev-302fa2e67276bd0674e81e2a9a01b9e91dd45d8c.tar.bz2
Initial revision
Diffstat (limited to 'server/server.h')
-rw-r--r--server/server.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/server/server.h b/server/server.h
new file mode 100644
index 0000000..bf40f37
--- /dev/null
+++ b/server/server.h
@@ -0,0 +1,44 @@
+/*
+ * $Id: server.h,v 1.1 2004/12/30 22:44:21 lordjaxom Exp $
+ */
+
+#ifndef VDR_STREAMDEV_SERVER_H
+#define VDR_STREAMDEV_SERVER_H
+
+#include <vdr/thread.h>
+
+#include "server/component.h"
+#include "server/connection.h"
+
+class cStreamdevServer: public cThread {
+private:
+ bool m_Active;
+
+ cServerComponents m_Servers;
+ cServerConnections m_Clients;
+
+ static cStreamdevServer *m_Instance;
+
+protected:
+ virtual void Action(void);
+
+ void Stop(void);
+
+public:
+ cStreamdevServer(void);
+ virtual ~cStreamdevServer();
+
+ void Register(cServerComponent *Server);
+
+ static void Init(void);
+ static void Exit(void);
+ static bool Active(void);
+};
+
+inline bool cStreamdevServer::Active(void) {
+ return m_Instance && m_Instance->m_Clients.Count() > 0;
+}
+
+extern cSVDRPhosts StreamdevHosts;
+
+#endif // VDR_STREAMDEV_SERVER_H