#include <functions.hpp>
◆ 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
-
sessionId | Provided UTF8String Session-Id content |
diameterIdentity | Sender Diameter Identity |
high | High 64-bit-sequence part |
low | Low 64-bit-sequence part |
optional | Empty 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
-
- 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
-
- 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
-
db | Provided Message DataBlock |
diameterIdentity | Sender Diameter Identity |
high | High 64-bit-sequence part |
low | Low 64-bit-sequence part |
optional | Empty 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
-
- Returns
- Session-Id
87 std::string dummy1, dummy4;
89 return (
getSessionId(db, dummy1, dummy2, dummy3, dummy4));
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)
The documentation for this struct was generated from the following file: