eq::Server Class Reference

Proxy object for the connection to an Equalizer server. More...

#include <server.h>

Inheritance diagram for eq::Server:

Inheritance graph
[legend]
Collaboration diagram for eq::Server:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Server ()
 Construct a new server.
ConfigchooseConfig (const ConfigParams &parameters)
 Choose a configuration on the server.
ConfiguseConfig (const ConfigParams &parameters, 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::CommandQueuegetNodeThreadQueue ()
net::CommandQueuegetCommandThreadQueue ()
 Return the command queue to the command thread.

Protected Member Functions

virtual ~Server ()
 Destructs this server.

Friends

class Client


Detailed Description

Proxy object for the connection to an Equalizer server.

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.

See also:
Client::connectServer

Definition at line 42 of file lib/client/server.h.


Constructor & Destructor Documentation

eq::Server::Server (  ) 

Construct a new server.

Definition at line 39 of file lib/client/server.cpp.

References EQINFO.


Member Function Documentation

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:
parameters the configuration parameters
Returns:
The chosen config, or 0if no matching config was found.
See also:
ConfigParams

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().

Here is the call graph for this function:

Config * eq::Server::useConfig ( const ConfigParams parameters,
const std::string &  config 
)

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.

Parameters:
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().

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Aug 10 18:58:43 2009 for Equalizer 0.9 by  doxygen 1.5.8