EpcTools
An event based multi-threaded C++ development framework.
|
Registers, unregisters and process freeDiameter hooks. See "MONITORING" in libfdcore.h in the freeDiameter library. More...
#include <efd.h>
Public Member Functions | |
FDHook () | |
Class constructor. More... | |
virtual Void | process (enum fd_hook_type type, struct msg *msg, struct peer_hdr *peer, Void *other, struct fd_hook_permsgdata *pmd)=0 |
Method that is called to process a freeDiameter hook callback. More... | |
Bool | registerHook (UInt hookmask) |
Registers the hook for the specified events. More... | |
Void | unregisterHook () |
Unregisters the hook. More... | |
struct fd_hook_hdl * | getHandle () |
Retrieves the hook handle. More... | |
UInt | getHookMask () |
Retrieves the hook mask. More... | |
Registers, unregisters and process freeDiameter hooks. See "MONITORING" in libfdcore.h in the freeDiameter library.
FDHook::FDHook | ( | ) |
Class constructor.
|
inline |
Retrieves the hook handle.
|
inline |
Retrieves the hook mask.
|
pure virtual |
Method that is called to process a freeDiameter hook callback.
type | the type of hook that triggered this call, in case same cb is registered for several hooks. |
msg | if relevant, the pointer to the message triggering the call. NULL otherwise. |
peer | if relevant, the pointer to the peer associated with the call. NULL otherwise. |
other | for some callbacks, the remaining information is passed in this parameter. See each hook detail. |
pmd | structure associated with a given message, across several hooks. |
Bool FDHook::registerHook | ( | UInt | hookmask | ) |
Registers the hook for the specified events.
Void FDHook::unregisterHook | ( | ) |
Unregisters the hook.