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
Remove multiple threads.
const char * short_hostname()
Get short hostname.
FireVision FUSE protocol server.
virtual bool get_bool(const char *path)=0
Get value from configuration which is of type bool.
virtual void loop()
Code to execute in the thread.
~FountainThread()
Destructor.
virtual void add(ThreadList &tl)=0
Add multiple threads.
NetworkNameResolver * nnresolver
Network name resolver to lookup IP addresses of hostnames and vice versa.
Representation of a service announced or found via service discovery (i.e.
ThreadCollector * thread_collector
Thread collector.
virtual void unpublish_service(NetworkService *service)=0
Revoke service publication.
Fawkes library namespace.
void print_trace()
Prints trace to stderr.
Configuration * config
This is the Configuration member used to access the configuration.
FountainThread()
Constructor.
Thread class encapsulation of pthreads.
virtual void publish_service(NetworkService *service)=0
Publish service.
virtual unsigned int get_uint(const char *path)=0
Get value from configuration which is of type unsigned int.
virtual std::string get_string(const char *path)=0
Get value from configuration which is of type string.
virtual void finalize()
Finalize the thread.
ServicePublisher * service_publisher
Service publisher to publish services on the network.
virtual void init()
Initialize the thread.
Base class for exceptions in Fawkes.