summaryrefslogtreecommitdiff
path: root/mcast/netcv2dvbip/streamer.h
diff options
context:
space:
mode:
Diffstat (limited to 'mcast/netcv2dvbip/streamer.h')
-rw-r--r--mcast/netcv2dvbip/streamer.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/mcast/netcv2dvbip/streamer.h b/mcast/netcv2dvbip/streamer.h
new file mode 100644
index 0000000..cc9388d
--- /dev/null
+++ b/mcast/netcv2dvbip/streamer.h
@@ -0,0 +1,35 @@
+#ifndef __STREAMER_H
+#define __STREAMER_H
+
+#include "misc.h"
+
+class cMulticastGroup;
+class cIgmpMain;
+
+class cStreamer
+{
+ public:
+ cStreamer();
+
+ void Run();
+ void Stop();
+ void SetBindIf(iface_t bindif);
+ void SetStreamPort(int portnum);
+ void SetTable(int table);
+ void SetNumGroups(int numgroups);
+
+ bool IsGroupinRange(in_addr_t groupaddr);
+ void StartMulticast(cMulticastGroup* Group);
+ void StopMulticast(cMulticastGroup* Group);
+
+
+ private:
+ cIgmpMain* m_IgmpMain;
+ in_addr_t m_bindaddr;
+ iface_t m_bindif;
+ int m_table;
+ int m_portnum;
+ int m_numgroups;
+};
+
+#endif