1
0
mirror of https://github.com/rofafor/vdr-plugin-satip.git synced 2023-10-10 13:37:42 +02:00
vdr-plugin-satip/msearch.h

42 lines
956 B
C
Raw Normal View History

2014-11-16 23:23:20 +01:00
/*
* msearch.h: SAT>IP plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
*/
#ifndef __SATIP_MSEARCH_H_
#define __SATIP_MSEARCH_H_
2014-11-29 14:37:21 +01:00
#include "discoverif.h"
2014-11-16 23:23:20 +01:00
#include "socket.h"
#include "pollerif.h"
class cSatipMsearch : public cSatipSocket, public cSatipPollerIf {
private:
enum {
eProbeBufferSize = 1024, // in bytes
eDiscoveryPort = 1900,
};
static const char *bcastAddressS;
static const char *bcastMessageS;
2014-11-29 14:37:21 +01:00
cSatipDiscoverIf &discoverM;
2014-11-16 23:23:20 +01:00
unsigned int bufferLenM;
unsigned char *bufferM;
bool registeredM;
public:
2015-08-16 00:38:03 +02:00
explicit cSatipMsearch(cSatipDiscoverIf &discoverP);
2014-11-16 23:23:20 +01:00
virtual ~cSatipMsearch();
void Probe(void);
// for internal poller interface
public:
virtual int GetFd(void);
2014-11-25 21:04:34 +01:00
virtual void Process(void);
virtual void Process(unsigned char *dataP, int lengthP);
virtual cString ToString(void) const;
2014-11-16 23:23:20 +01:00
};
#endif /* __SATIP_MSEARCH_H_ */