Various Diameter utility functions.
More...
#include <efd.h>
|
static Void | splitDiameterFQDN (std::string &fqdn, std::string &host, std::string &realm) |
| Splits a fully qualified domain name into host and realm. More...
|
|
static Void | splitDiameterFQDN (const char *fqdn, std::string &host, std::string &realm) |
| Splits a fully qualified domain name into host and realm. More...
|
|
static size_t | str2tbcd (const char *src, size_t srclen, uint8_t *dst, size_t dstlen) |
| Converts a series of digits to telephony binary coded decimal. More...
|
|
static size_t | str2tbcd (const char *src, uint8_t *dst, size_t dstlen) |
| Converts a series of digits to telephony binary coded decimal. More...
|
|
static size_t | str2tbcd (const std::string &src, uint8_t *dst, size_t dstlen) |
| Converts a series of digits to telephony binary coded decimal. More...
|
|
static size_t | tbcd2str (uint8_t *src, size_t srclen, char *dst, size_t dstlen) |
| Converts a TBCD value to a series of digits. More...
|
|
static size_t | tbcd2str (uint8_t *src, size_t srclen, std::string &dst) |
| Converts a TBCD value to a series of digits. More...
|
|
Various Diameter utility functions.
◆ splitDiameterFQDN() [1/2]
static Void FDUtility::splitDiameterFQDN |
( |
const char * |
fqdn, |
|
|
std::string & |
host, |
|
|
std::string & |
realm |
|
) |
| |
|
inlinestatic |
Splits a fully qualified domain name into host and realm.
- Parameters
-
fqdn | the fully qualified domain name. |
host | the resulting host. |
realm | the resulting realm. |
◆ splitDiameterFQDN() [2/2]
Void FDUtility::splitDiameterFQDN |
( |
std::string & |
fqdn, |
|
|
std::string & |
host, |
|
|
std::string & |
realm |
|
) |
| |
|
static |
Splits a fully qualified domain name into host and realm.
- Parameters
-
fqdn | the fully qualified domain name. |
host | the resulting host. |
realm | the resulting realm. |
◆ str2tbcd() [1/3]
size_t FDUtility::str2tbcd |
( |
const char * |
src, |
|
|
size_t |
srclen, |
|
|
uint8_t * |
dst, |
|
|
size_t |
dstlen |
|
) |
| |
|
static |
Converts a series of digits to telephony binary coded decimal.
- Parameters
-
src | the source string containing the digits. |
srclen | the length of the source string. |
dst | the destination where the TBCD value will be stored. |
dstlen | the maximum length of the TBCD value. |
- Returns
- the length of the TBCD encoded value.
◆ str2tbcd() [2/3]
size_t FDUtility::str2tbcd |
( |
const char * |
src, |
|
|
uint8_t * |
dst, |
|
|
size_t |
dstlen |
|
) |
| |
|
static |
Converts a series of digits to telephony binary coded decimal.
- Parameters
-
src | the source NULL terminated string containing the digits. |
dst | the destination where the TBCD value will be stored. |
dstlen | the maximum length of the TBCD value. |
- Returns
- the length of the TBCD encoded value.
◆ str2tbcd() [3/3]
size_t FDUtility::str2tbcd |
( |
const std::string & |
src, |
|
|
uint8_t * |
dst, |
|
|
size_t |
dstlen |
|
) |
| |
|
static |
Converts a series of digits to telephony binary coded decimal.
- Parameters
-
src | the string containing the digits. |
dst | the destination where the TBCD value will be stored. |
dstlen | the maximum length of the TBCD value. |
- Returns
- the length of the TBCD encoded value.
◆ tbcd2str() [1/2]
size_t FDUtility::tbcd2str |
( |
uint8_t * |
src, |
|
|
size_t |
srclen, |
|
|
char * |
dst, |
|
|
size_t |
dstlen |
|
) |
| |
|
static |
Converts a TBCD value to a series of digits.
- Parameters
-
src | the source TBCD value. |
srclen | the length of the TBCD value in bytes. |
dst | the destination where the digits will be stored. |
dstlen | the maximum length of the buffer where the digits will be stored. |
- Returns
- the length of the string of digits.
◆ tbcd2str() [2/2]
size_t FDUtility::tbcd2str |
( |
uint8_t * |
src, |
|
|
size_t |
srclen, |
|
|
std::string & |
dst |
|
) |
| |
|
static |
Converts a TBCD value to a series of digits.
- Parameters
-
src | the source TBCD value. |
srclen | the length of the TBCD value in bytes. |
dst | the destination where the digits will be stored. |
- Returns
- the length of the string of digits.
The documentation for this class was generated from the following files:
- /home/vagrant/share/code/epctools/include/epc/efd.h
- /home/vagrant/share/code/epctools/src/efd.cpp