23 #include "fountain_thread.h"
25 #include <core/exceptions/software.h>
26 #include <fvutils/net/fuse_server.h>
31 using namespace fawkes;
32 using namespace firevision;
41 :
Thread(
"FountainThread", OPMODE_WAITFORWAKEUP)
51 if ( __fuse_server ) {
65 unsigned int port = 0;
68 if ( port > 0xFFFF ) {
79 std::string sname =
"Fountain on ";
81 __service =
new NetworkService(sname.c_str(),
"_fountain._tcp", port);
103 printf(
"Sucker Loop\n");
FireVision FUSE protocol server.
ServicePublisher * service_publisher
Service publisher to publish services on the network.
virtual void unpublish_service(NetworkService *service)=0
Revoke service publication.
virtual void remove(ThreadList &tl)=0
Remove multiple threads.
virtual void publish_service(NetworkService *service)=0
Publish service.
virtual void init()
Initialize the thread.
virtual void loop()
Code to execute in the thread.
Thread class encapsulation of pthreads.
ThreadCollector * thread_collector
Thread collector.
FountainThread()
Constructor.
const char * short_hostname()
Get short hostname.
Base class for exceptions in Fawkes.
NetworkNameResolver * nnresolver
Network name resolver to lookup IP addresses of hostnames and vice versa.
virtual void add(ThreadList &tl)=0
Add multiple threads.
Representation of a service announced or found via service discovery (i.e.
void print_trace()
Prints trace to stderr.
virtual void finalize()
Finalize the thread.
virtual unsigned int get_uint(const char *path)=0
Get value from configuration which is of type unsigned int.
~FountainThread()
Destructor.
Configuration * config
This is the Configuration member used to access the configuration.