ANNA Suite  2020b
Multipurpose development suite for Telco applications
Static Public Member Functions | List of all members
anna::diameter::helpers::base::functions Struct Reference

#include <functions.hpp>

Static Public Member Functions

static U32 getResultCode (const anna::DataBlock &) noexcept(false)
 
static void decodeSessionId (const std::string &sessionId, std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) noexcept(false)
 
static std::string getSessionId (const anna::DataBlock &db, std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) noexcept(false)
 
static std::string getSessionId (const anna::DataBlock &db) noexcept(false)
 
static std::string getOriginHost (const anna::DataBlock &db) noexcept(false)
 

Member Function Documentation

◆ decodeSessionId()

static void anna::diameter::helpers::base::functions::decodeSessionId ( const std::string &  sessionId,
std::string &  diameterIdentity,
U32 high,
U32 low,
std::string &  optional 
)
staticnoexcept

Gets the tokenized by ';' Session-Id contents defined as '<DiameterIdentity>;<high 32 bits>;<low 32 bits>[;<optional value>="">]':

Parameters
sessionIdProvided UTF8String Session-Id content
diameterIdentitySender Diameter Identity
highHigh 64-bit-sequence part
lowLow 64-bit-sequence part
optionalEmpty string when missing

◆ getOriginHost()

static std::string anna::diameter::helpers::base::functions::getOriginHost ( const anna::DataBlock db)
staticnoexcept

Gets the fixed Origin-Host AVP (DiameterIdentity) from datablock provided.

Parameters
dbProvided Message DataBlock
Returns
Origin-Host

◆ getResultCode()

static U32 anna::diameter::helpers::base::functions::getResultCode ( const anna::DataBlock )
staticnoexcept

Gets the first level command Result-Code from datablock provided

Parameters
dbProvided Message DataBlock
Returns
Result-Code value

◆ getSessionId() [1/2]

static std::string anna::diameter::helpers::base::functions::getSessionId ( const anna::DataBlock db,
std::string &  diameterIdentity,
U32 high,
U32 low,
std::string &  optional 
)
staticnoexcept

Gets the fixed Session-Id AVP (UTF8String) from datablock provided. Also gets the tokenized by ';' Session-Id contents defined as '<DiameterIdentity>;<high 32 bits>;<low 32 bits>[;<optional value>="">]':

Parameters
dbProvided Message DataBlock
diameterIdentitySender Diameter Identity
highHigh 64-bit-sequence part
lowLow 64-bit-sequence part
optionalEmpty string when missing
Returns
Session-Id

◆ getSessionId() [2/2]

static std::string anna::diameter::helpers::base::functions::getSessionId ( const anna::DataBlock db)
inlinestaticnoexcept

Gets the fixed Session-Id AVP (UTF8String) from datablock provided.

Parameters
dbProvided Message DataBlock
Returns
Session-Id
86  {
87  std::string dummy1, dummy4;
88  U32 dummy2, dummy3;
89  return (getSessionId(db, dummy1, dummy2, dummy3, dummy4));
90  }
uint32_t U32
Definition: defines.hpp:75
static std::string getSessionId(const anna::DataBlock &db, std::string &diameterIdentity, U32 &high, U32 &low, std::string &optional) noexcept(false)
Here is the call graph for this function:

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