#include <base.h>

Provides packet dispatch for an object using a command handler table. Handles the result of the command handlers.
Definition at line 29 of file net/base.h.
Public Member Functions | |
| Base (const Base &from) | |
| const Base & | operator= (const Base &) |
| 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. | |
| bool eq::net::Base::dispatchCommand | ( | Command & | command | ) | [virtual] |
Dispatch a command from the receiver thread to the registered queue.
| command | the command. |
Reimplemented in eq::net::Node, and eq::net::Session.
Definition at line 52 of file base.cpp.
References eq::net::Command::getPacket(), and eq::net::Command::isDispatched().
Referenced by eq::net::Session::dispatchCommand(), and eq::net::Node::dispatchCommand().


| CommandResult eq::net::Base::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, and eq::net::Session.
Definition at line 86 of file base.cpp.
References eq::net::Command::isDispatched().
Referenced by eq::net::Session::invokeCommand(), and eq::net::Node::invokeCommand().


| void eq::net::Base::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 98 of file net/base.h.
Referenced by eq::Pipe::attachToSession(), eq::FrameData::attachToSession(), eq::Channel::Channel(), eq::Config::Config(), eq::Client::listen(), eq::net::Node::Node(), eq::net::UnbufferedMasterCM::notifyAttached(), eq::net::StaticSlaveCM::notifyAttached(), eq::net::FullSlaveCM::notifyAttached(), eq::net::FullMasterCM::notifyAttached(), eq::net::DeltaMasterCM::notifyAttached(), eq::net::Session::setLocalNode(), and eq::Window::Window().

| CommandResult eq::net::Base::_cmdUnknown | ( | Command & | command | ) | [protected] |
The default handler for handling commands.
| command | the command |
Definition at line 103 of file base.cpp.
Referenced by eq::Config::Config().

0.6 by
1.5.5