hlswmaster-ng/hlswserver.h

47 lines
668 B
C++

#ifndef _HLSWSERVER_H_
#define _HLSWSERVER_H_
#include <string.h>
#include "thread.h"
#include "config.h"
#include "gamelist.h"
class HlswServer : public Thread {
public:
HlswServer(Config& conf, GameList& slist);
~HlswServer();
int execute(void* arg);
protected:
HlswServer(const HlswServer& hs);
HlswServer& operator=(const HlswServer& hs);
private:
class HlswPacket {
public:
HlswPacket() : next(0), count(0)
{
memset(data, 0, sizeof(data));
}
int getSize()
{
return 12 + count * 10;
}
void addGame(void* ptr) {}
HlswPacket* next;
int count;
char data[1412];
};
HlswPacket* out;
int sock;
};
#endif // _HLSWSERVER_H_