Equalizer 1.0
|
A client represents a network node of the application in the cluster. More...
#include <client.h>
Public Member Functions | |
bool | connectServer (co::NodePtr server) |
Open and connect an Equalizer server to the local client. | |
bool | disconnectServer (co::NodePtr server) |
Disconnect and close the connection to an Equalizer server. | |
void | processCommand () |
Get and process one pending command from the node command queue. | |
virtual co::CommandQueue * | getMainThreadQueue ()=0 |
virtual bool | dispatchCommand (co::Command &command) |
Dispatches a packet to the registered command queue. | |
Protected Member Functions | |
Client () | |
Construct a new client. | |
virtual | ~Client () |
Destruct the client. |
A client represents a network node of the application in the cluster.
Definition at line 30 of file include/eq/fabric/client.h.
bool eq::fabric::Client::connectServer | ( | co::NodePtr | server | ) |
Open and connect an Equalizer server to the local client.
The client has to be in the listening state, see initLocal().
server | the server. |
bool eq::fabric::Client::disconnectServer | ( | co::NodePtr | server | ) |
Disconnect and close the connection to an Equalizer server.
server | the server. |
virtual bool eq::fabric::Client::dispatchCommand | ( | co::Command & | command | ) | [virtual] |
Dispatches a packet to the registered command queue.
command | the command. |
Reimplemented from co::LocalNode.
virtual co::CommandQueue* eq::fabric::Client::getMainThreadQueue | ( | ) | [pure virtual] |
Implemented in eq::Client.
void eq::fabric::Client::processCommand | ( | ) |
Get and process one pending command from the node command queue.
Referenced by eqPly::EqPly::run().