Fawkes API
Fawkes Development Version
|
23 #include "fountain_thread.h"
25 #include <core/exceptions/software.h>
26 #include <fvutils/net/fuse_server.h>
32 using namespace firevision;
62 unsigned int port = 0;
69 bool enable_ipv4 =
true;
70 bool enable_ipv6 =
true;
71 std::string listen_ipv4;
72 std::string listen_ipv6;
101 std::string sname =
"Fountain on ";
103 service_ =
new NetworkService(sname.c_str(),
"_fountain._tcp", port);
123 printf(
"Sucker Loop\n");
virtual void remove(ThreadList &tl)=0
const char * short_hostname()
Get short hostname.
virtual bool get_bool(const char *path)=0
virtual void loop()
Code to execute in the thread.
~FountainThread()
Destructor.
virtual void add(ThreadList &tl)=0
NetworkNameResolver * nnresolver
ThreadCollector * thread_collector
virtual void unpublish_service(NetworkService *service)=0
void print_trace()
Prints trace to stderr.
FountainThread()
Constructor.
virtual void publish_service(NetworkService *service)=0
virtual unsigned int get_uint(const char *path)=0
virtual std::string get_string(const char *path)=0
virtual void finalize()
Finalize the thread.
ServicePublisher * service_publisher
virtual void init()
Initialize the thread.