|
glooxd
0.3-svn
|
#include <router.h>

Public Member Functions | |
| Router (ConfigManager &cm, const gloox::LogSink &logInstance, bool threading=false) | |
| ~Router () | |
| void | run () |
| void | registerDomain (TagHandler *th, const std::string &domain, bool node) |
| virtual void | handleDomainAdded (const std::string &) |
| virtual void | handleDomainRemoved (const std::string &) |
| virtual void | handleShutdown () |
Public Member Functions inherited from TagHandler | |
| virtual | ~TagHandler () |
Public Member Functions inherited from ConfigHandler | |
| virtual | ~ConfigHandler () |
| virtual bool | handleC2SInterfaceAdded (const std::string &interface, int port) |
| virtual bool | handleC2SInterfaceRemoved (const std::string &interface, int port) |
| Router | ( | ConfigManager & | cm, |
| const gloox::LogSink & | logInstance, | ||
| bool | threading = false |
||
| ) |
Instantiates a new object that can be used for local (in-process) routing.
| cm | The local ConfigManager. |
| logInstance | The local LogSink. |
| threading | Whether this instance runs in its own thread. |
Definition at line 33 of file router.cpp.
| ~Router | ( | ) |
Destructor.
Definition at line 39 of file router.cpp.
|
inlinevirtual |
This function is called if a new domain has been added that the server supports.
| domain | The new domain. |
Implements ConfigHandler.
|
inlinevirtual |
This function is called if a domain has been removed.
| domain | The removed domain. |
Implements ConfigHandler.
|
virtual |
This function is called to prepare a server shutdown.
Implements ConfigHandler.
Definition at line 60 of file router.cpp.
| void registerDomain | ( | TagHandler * | th, |
| const std::string & | domain, | ||
| bool | node | ||
| ) |
Registers a TagHandler for the given domain. Used internally to route Stanzas to components.
| th | The TagHandler to register for the given domain. |
| domain | The domain to route to the given TagHandler. |
| node | The routed JID must posses a node to be routed to this TagHandler. |
Definition at line 68 of file router.cpp.
| void run | ( | ) |
Starts processing incoming events. Blocks if the threading parameter to the constructor is true.
Definition at line 44 of file router.cpp.
1.8.1.2