#include <server.h>


Public Member Functions | |
| Server () | |
| Construct a new server. | |
| Config * | chooseConfig (const ConfigParams ¶meters) |
| Choose a configuration on the server. | |
| Config * | useConfig (const ConfigParams ¶meters, const std::string &config) |
| void | releaseConfig (Config *config) |
| Release a configuration. | |
| bool | shutdown () |
| Undocumented - may not be supported in the future. | |
Internal | |
| void | setClient (ClientPtr client) |
| ClientPtr | getClient () |
| net::CommandQueue * | getNodeThreadQueue () |
| net::CommandQueue * | getCommandThreadQueue () |
| Return the command queue to the command thread. | |
Protected Member Functions | |
| virtual | ~Server () |
| Destructs this server. | |
Friends | |
| class | Client |
The server manages the configurations for a set of Equalizer applications. This proxy object is used to connect to a server and obtain and release a Config from the server.
Definition at line 42 of file lib/client/server.h.
| eq::Server::Server | ( | ) |
| net::CommandQueue * eq::Server::getCommandThreadQueue | ( | ) |
Return the command queue to the command thread.
Reimplemented from eq::net::Node.
Definition at line 81 of file lib/client/server.cpp.
| Config * eq::Server::chooseConfig | ( | const ConfigParams & | parameters | ) |
Choose a configuration on the server.
| parameters | the configuration parameters |
Definition at line 86 of file lib/client/server.cpp.
References eq::net::Node::_requestHandler, EQWARN, eq::ConfigParams::getRenderClient(), eq::ConfigParams::getWorkDir(), eq::base::RequestHandler::isServed(), eq::base::RequestHandler::registerRequest(), eq::net::Node::send(), and eq::base::RequestHandler::waitRequest().

| Config * eq::Server::useConfig | ( | const ConfigParams & | parameters, | |
| const std::string & | config | |||
| ) |
Definition at line 118 of file lib/client/server.cpp.
References eq::net::Node::_requestHandler, EQWARN, eq::ConfigParams::getRenderClient(), eq::ConfigParams::getWorkDir(), eq::base::RequestHandler::isServed(), eq::base::RequestHandler::registerRequest(), eq::net::Node::send(), and eq::base::RequestHandler::waitRequest().

| void eq::Server::releaseConfig | ( | Config * | config | ) |
Release a configuration.
The passed configuration will be destroyed by this function and is no longer valid after the call.
| config | the configuration. |
Definition at line 153 of file lib/client/server.cpp.
References eq::net::Node::_requestHandler, eq::net::Session::getID(), eq::base::RequestHandler::isServed(), eq::base::RequestHandler::registerRequest(), eq::net::Node::send(), and eq::base::RequestHandler::waitRequest().

0.9 by
1.5.8