/*
Copyright 2019 Chris Tallon
This file is part of VOMP.
VOMP is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
VOMP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with VOMP. If not, see .
*/
#ifndef VDP_H
#define VDP_H
#if IPV6
#include
#include
class VDRServer;
/*
* Until VDP is reorganised, getServers must be called after stop
* and the buffers pointed to by the VDRServer structs must be freed
* by the caller.
*/
class VDP6
{
public:
VDP6();
void run();
void stop();
int numFound();
vector* getServers() { return &servers; }
private:
int pfds[2];
int sock;
std::thread receiveThread;
vector servers;
};
#endif
#endif