glooxd  0.3-svn
Public Member Functions | List of all members
ConfigHandler Class Reference

#include <confighandler.h>

Inheritance diagram for ConfigHandler:
Inheritance graph
[legend]

Public Member Functions

virtual ~ConfigHandler ()
virtual bool handleC2SInterfaceAdded (const std::string &interface, int port)
virtual bool handleC2SInterfaceRemoved (const std::string &interface, int port)
virtual void handleDomainAdded (const std::string &domain)=0
virtual void handleDomainRemoved (const std::string &domain)=0
virtual void handleShutdown ()=0

Detailed Description

An interface that can be re-implemented to receive configuration updates.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
0.2

Definition at line 31 of file confighandler.h.

Constructor & Destructor Documentation

virtual ~ConfigHandler ( )
inlinevirtual

Virtual destructor.

Definition at line 37 of file confighandler.h.

Member Function Documentation

virtual bool handleC2SInterfaceAdded ( const std::string &  interface,
int  port 
)
inlinevirtual

Adds a new C2S interface.

Parameters
interfaceThe local interface to listen on.
portThe local port to listen on.

Definition at line 44 of file confighandler.h.

virtual bool handleC2SInterfaceRemoved ( const std::string &  interface,
int  port 
)
inlinevirtual

Removes a C2S interface.

Parameters
interfaceThe local interface to stop listening on.
portThe local port to stop listening on.

Definition at line 57 of file confighandler.h.

virtual void handleDomainAdded ( const std::string &  domain)
pure virtual

This function is called if a new domain has been added that the server supports.

Parameters
domainThe new domain.

Implemented in SM, and Router.

virtual void handleDomainRemoved ( const std::string &  domain)
pure virtual

This function is called if a domain has been removed.

Parameters
domainThe removed domain.

Implemented in SM, and Router.

virtual void handleShutdown ( )
pure virtual

This function is called to prepare a server shutdown.

Implemented in SM, and Router.


The documentation for this class was generated from the following file: