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