24 #ifndef __NETCOMM_FAWKES_CLIENT_THREAD_H_ 25 #define __NETCOMM_FAWKES_CLIENT_THREAD_H_ 27 #include <core/threading/thread.h> 33 class FawkesNetworkServerThread;
34 class FawkesNetworkMessage;
35 class FawkesNetworkMessageQueue;
38 class FawkesNetworkServerClientSendThread;
49 unsigned int clid()
const;
50 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.