2013-07-24 11:16:31 +02:00
|
|
|
#ifndef AVAHI_NETWORK_SERVICE_H
|
|
|
|
#define AVAHI_NETWORK_SERVICE_H
|
2013-07-25 12:03:31 +02:00
|
|
|
|
2013-07-25 15:45:19 +02:00
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <algorithm>
|
|
|
|
#include <vector>
|
|
|
|
#include <thread>
|
|
|
|
#include <iostream>
|
|
|
|
|
|
|
|
#include <avahi-client/client.h>
|
|
|
|
#include <avahi-client/publish.h>
|
|
|
|
#include <avahi-common/thread-watch.h>
|
|
|
|
|
|
|
|
#include <avahi-common/alternative.h>
|
|
|
|
#include <avahi-common/malloc.h>
|
|
|
|
#include <avahi-common/error.h>
|
|
|
|
#include <avahi-common/timeval.h>
|
|
|
|
|
|
|
|
#include "ZeroconfService.hxx"
|
|
|
|
|
|
|
|
namespace sd {
|
|
|
|
|
|
|
|
class AvahiNetworkService : public ZeroconfService
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
AvahiNetworkService(const std::string& aname = "", uint aport = 1599)
|
|
|
|
: ZeroconfService(aname, aport){}
|
2013-07-25 17:23:25 +01:00
|
|
|
virtual ~AvahiNetworkService(){}
|
2013-07-25 15:45:19 +02:00
|
|
|
|
|
|
|
void clear();
|
|
|
|
void setup();
|
|
|
|
};
|
|
|
|
}
|
2013-07-25 12:03:31 +02:00
|
|
|
#endif
|