mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 13:37:03 +02:00
38 lines
825 B
C++
38 lines
825 B
C++
/*
|
|
* streamer.h: IPTV plugin for the Video Disk Recorder
|
|
*
|
|
* See the README file for copyright information and how to reach the author.
|
|
*
|
|
* $Id: streamer.h,v 1.7 2007/09/29 16:21:05 rahrenbe Exp $
|
|
*/
|
|
|
|
#ifndef __IPTV_STREAMER_H
|
|
#define __IPTV_STREAMER_H
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
#include <vdr/thread.h>
|
|
#include <vdr/ringbuffer.h>
|
|
|
|
#include "protocolif.h"
|
|
|
|
class cIptvStreamer : public cThread {
|
|
private:
|
|
cRingBufferLinear* ringBuffer;
|
|
cMutex* mutex;
|
|
unsigned char* readBuffer;
|
|
unsigned int readBufferLen;
|
|
cIptvProtocolIf* protocol;
|
|
|
|
public:
|
|
cIptvStreamer(cRingBufferLinear* RingBuffer, cMutex* Mutex);
|
|
virtual ~cIptvStreamer();
|
|
virtual void Action(void);
|
|
bool Set(const char* Address, const int Port, cIptvProtocolIf* Protocol);
|
|
bool Open(void);
|
|
bool Close(void);
|
|
};
|
|
|
|
#endif // __IPTV_STREAMER_H
|
|
|