EpcTools
An event based multi-threaded C++ development framework.
|
Provides an interface for controlling freeDiameter. More...
#include <efd.h>
Public Member Functions | |
FDEngine (const char *cfgfile=NULL) | |
Class constructor. More... | |
FDEngine (const std::string &cfgfile) | |
Class constructor. More... | |
~FDEngine () | |
Class destructor. More... | |
Bool | init () |
Initializes freeDiameter and loads the configuration file. More... | |
Bool | start () |
Starts freeDiameter. More... | |
Void | uninit (Bool wait=true) |
Shuts down freeDiameter. More... | |
Void | waitForShutdown () |
Waits for freeDiameter to shut down. More... | |
const EString & | getConfigFile () |
Retrieves the configuration file name.. More... | |
const EString & | setConfigFile (const char *cf) |
Sets the configuration file. More... | |
const EString & | setConfigFile (const std::string &cf) |
Sets the configuration file. More... | |
Void | advertiseSupport (FDDictionaryEntryApplication &app, Int auth=0, Int acct=0) |
Configures a Diameter application to be advertised in the CER/CEA. More... | |
Void | advertiseSupport (FDDictionaryEntryApplication &app, FDDictionaryEntryVendor &vendor, Int auth=0, Int acct=0) |
Configures a vendor specific Diameter application to be advertised in the CER/CEA. More... | |
Provides an interface for controlling freeDiameter.
FDEngine::FDEngine | ( | const char * | cfgfile = NULL | ) |
Class constructor.
cfgfile | the full path to the freeDiameter configuration file. |
FDEngine::FDEngine | ( | const std::string & | cfgfile | ) |
Class constructor.
cfgfile | the full path to the freeDiameter configuration file. |
FDEngine::~FDEngine | ( | ) |
Class destructor.
Void FDEngine::advertiseSupport | ( | FDDictionaryEntryApplication & | app, |
FDDictionaryEntryVendor & | vendor, | ||
Int | auth = 0 , |
||
Int | acct = 0 |
||
) |
Configures a vendor specific Diameter application to be advertised in the CER/CEA.
app | the dictionary entry associated with the application. |
vendor | the dictionary entry associated with vendor. |
auth | indicates that this application is an authentication application. |
acct | indicates that this application is an accounting application. |
FDException |
Void FDEngine::advertiseSupport | ( | FDDictionaryEntryApplication & | app, |
Int | auth = 0 , |
||
Int | acct = 0 |
||
) |
Configures a Diameter application to be advertised in the CER/CEA.
app | the dictionary entry associated with the application. |
auth | indicates that this application is an authentication application. |
acct | indicates that this application is an accounting application. |
FDException |
|
inline |
Retrieves the configuration file name..
Bool FDEngine::init | ( | ) |
Initializes freeDiameter and loads the configuration file.
FDException |
|
inline |
Sets the configuration file.
cf | the new value for the configuration file. |
|
inline |
Sets the configuration file.
cf | the new value for the configuration file. |
Bool FDEngine::start | ( | ) |
Void FDEngine::uninit | ( | Bool | wait = true | ) |
Shuts down freeDiameter.
Void FDEngine::waitForShutdown | ( | ) |
Waits for freeDiameter to shut down.