#include <dispatcher.h>


Public Member Functions | |
| Dispatcher (const Dispatcher &from) | |
| const Dispatcher & | operator= (const Dispatcher &) |
| NOP assignment operator. | |
| virtual bool | dispatchCommand (Command &command) |
| Dispatch a command from the receiver thread to the registered queue. | |
| virtual CommandResult | invokeCommand (Command &command) |
| Handles a received command packet for this object by calling the appropriate command handler function. | |
Protected Member Functions | |
| template<typename T > | |
| void | registerCommand (const uint32_t command, const CommandFunc< T > &func, CommandQueue *destinationQueue) |
| Registers a command member function for a command. | |
| CommandResult | _cmdUnknown (Command &command) |
| The default handler for handling commands. | |
Provides packet dispatch through a command queue and command handler table. Returns the result of the invoked command handlers.
Definition at line 43 of file dispatcher.h.
| const Dispatcher& eq::net::Dispatcher::operator= | ( | const Dispatcher & | ) | [inline] |
| bool eq::net::Dispatcher::dispatchCommand | ( | Command & | command | ) | [virtual] |
Dispatch a command from the receiver thread to the registered queue.
| command | the command. |
Reimplemented in eq::net::Node, eq::net::Session, and eq::server::Server.
Definition at line 75 of file dispatcher.cpp.
References eq::net::COMMAND_HANDLED, EQVERB, eq::net::Command::getPacket(), and eq::net::CommandQueue::push().

| CommandResult eq::net::Dispatcher::invokeCommand | ( | Command & | command | ) | [virtual] |
Handles a received command packet for this object by calling the appropriate command handler function.
| command | the command. |
Reimplemented in eq::net::Node, eq::net::Session, and eq::server::Server.
Definition at line 112 of file dispatcher.cpp.
References eq::net::COMMAND_ERROR, and EQERROR.
| void eq::net::Dispatcher::registerCommand | ( | const uint32_t | command, | |
| const CommandFunc< T > & | func, | |||
| CommandQueue * | destinationQueue | |||
| ) | [inline, protected] |
Registers a command member function for a command.
If the destination queue is 0, the command function is invoked directly.
| command | the command. | |
| func | the functor to handle the command. | |
| destinationQueue | the queue to which the receiver thread dispatches the command. |
Definition at line 112 of file dispatcher.h.
Referenced by eq::server::Window::attachToSession(), eq::Window::attachToSession(), eq::server::Pipe::attachToSession(), eq::Pipe::attachToSession(), eq::net::Object::attachToSession(), eq::server::Node::attachToSession(), eq::Node::attachToSession(), eq::FrameData::attachToSession(), eq::server::Channel::attachToSession(), eq::Channel::attachToSession(), eq::net::Barrier::attachToSession(), eq::Client::listen(), eq::net::Node::Node(), eq::net::Session::notifyMapped(), eq::server::Config::notifyMapped(), eq::Config::notifyMapped(), and eq::server::Server::Server().

| CommandResult eq::net::Dispatcher::_cmdUnknown | ( | Command & | command | ) | [protected] |
The default handler for handling commands.
| command | the command |
Definition at line 128 of file dispatcher.cpp.
References eq::net::COMMAND_ERROR, and EQERROR.
Referenced by eq::Config::notifyMapped().

0.9 by
1.5.8