Fawkes API
Fawkes Development Version
|
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);
Sending thread for a Fawkes client connected to the server.
void connection_died()
Connection died notification.
virtual void once()
Execute an action exactly once.
A LockQueue of FawkesNetworkMessage to hold messages in inbound and outbound queues.
void force_send()
Force sending of all pending outbound messages.
virtual void run()
Stub to see name in backtrace for easier debugging.
Fawkes Network Client Thread for server.
Fawkes library namespace.
~FawkesNetworkServerClientThread()
Destructor.
virtual void loop()
Thread loop.
FawkesNetworkServerClientThread(StreamSocket *s, FawkesNetworkServerThread *parent)
Constructor.
void enqueue(FawkesNetworkMessage *msg)
Enqueue message to outbound queue.
void set_clid(unsigned int client_id)
Set client ID.
virtual void run()
Code to execute in the thread.
Thread class encapsulation of pthreads.
unsigned int clid() const
Get client ID.
Representation of a message that is sent over the network.
TCP stream socket over IP.
bool alive() const
Check aliveness of connection.