23 #ifndef __PLUGINS_EXAMPLE_NET_THREAD_H_ 24 #define __PLUGINS_EXAMPLE_NET_THREAD_H_ 26 #include <core/threading/thread.h> 27 #include <aspect/logging.h> 28 #include <aspect/fawkes_network.h> 29 #include <netcomm/fawkes/handler.h> 52 protected:
virtual void run() { Thread::run(); }
virtual void handle_network_message(fawkes::FawkesNetworkMessage *msg)
Handle network message.
ExampleNetworkThread(const char *name)
Constructor.
Network thread of example plugin.
virtual void client_disconnected(unsigned int clid)
Client disconnected.
virtual void init()
Initialize thread.
Representation of a message that is sent over the network.
Thread aspect to participate in the Fawkes Network protocol.
Thread class encapsulation of pthreads.
virtual ~ExampleNetworkThread()
Destructor.
virtual void finalize()
Finalize the thread.
const char * name() const
Get name of thread.
virtual void loop()
Thread loop.
Network handler abstract base class.
Thread aspect to log output.
virtual void client_connected(unsigned int clid)
Client connected.
virtual void run()
Stub to see name in backtrace for easier debugging.