24 #ifndef _NETCOMM_FAWKES_CLIENT_THREAD_H_ 25 #define _NETCOMM_FAWKES_CLIENT_THREAD_H_ 27 #include <core/threading/thread.h> 34 class FawkesNetworkServerThread;
35 class FawkesNetworkMessage;
36 class FawkesNetworkMessageQueue;
39 class FawkesNetworkServerClientSendThread;
50 unsigned int clid()
const;
51 void set_clid(
unsigned int client_id);
Fawkes Network Client Thread for server.
A LockQueue of FawkesNetworkMessage to hold messages in inbound and outbound queues.
Fawkes library namespace.
void force_send()
Force sending of all pending outbound messages.
virtual void run()
Code to execute in the thread.
Representation of a message that is sent over the network.
Thread class encapsulation of pthreads.
Sending thread for a Fawkes client connected to the server.
TCP stream socket over IP.
virtual void loop()
Thread loop.
FawkesNetworkServerClientThread(StreamSocket *s, FawkesNetworkServerThread *parent)
Constructor.
virtual void once()
Execute an action exactly once.
void set_clid(unsigned int client_id)
Set client ID.
bool alive() const
Check aliveness of connection.
virtual void run()
Stub to see name in backtrace for easier debugging.
~FawkesNetworkServerClientThread()
Destructor.
void enqueue(FawkesNetworkMessage *msg)
Enqueue message to outbound queue.
void connection_died()
Connection died notification.
unsigned int clid() const
Get client ID.