|
Yate
|
SS7 Routing Label. More...
#include <yatesig.h>
Public Member Functions | |
| SS7Label () | |
| SS7Label (const SS7Label &original) | |
| SS7Label (const SS7Label &original, unsigned char sls, unsigned char spare=0) | |
| SS7Label (SS7PointCode::Type type, const SS7PointCode &dpc, const SS7PointCode &opc, unsigned char sls, unsigned char spare=0) | |
| SS7Label (SS7PointCode::Type type, unsigned int dpc, unsigned int opc, unsigned char sls, unsigned char spare=0) | |
| SS7Label (SS7PointCode::Type type, const SS7MSU &msu) | |
| void | assign (SS7PointCode::Type type, const SS7PointCode &dpc, const SS7PointCode &opc, unsigned char sls, unsigned char spare=0) |
| void | assign (SS7PointCode::Type type, unsigned int dpc, unsigned int opc, unsigned char sls, unsigned char spare=0) |
| bool | assign (SS7PointCode::Type type, const SS7MSU &msu) |
| bool | assign (SS7PointCode::Type type, const unsigned char *src, int len=-1) |
| bool | store (unsigned char *dest) const |
| bool | compatible (SS7PointCode::Type type) const |
| SS7PointCode::Type | type () const |
| const SS7PointCode & | dpc () const |
| SS7PointCode & | dpc () |
| const SS7PointCode & | opc () const |
| SS7PointCode & | opc () |
| unsigned char | sls () const |
| void | setSls (unsigned char sls) |
| unsigned char | spare () const |
| void | setSpare (unsigned char spare) |
| unsigned int | length () const |
| unsigned char | size () const |
Static Public Member Functions | |
| static unsigned int | length (SS7PointCode::Type type) |
| static unsigned char | size (SS7PointCode::Type type) |
SS7 Routing Label.
A SS7 Layer 3 routing label, both ANSI and ITU capable
| SS7Label | ( | ) |
Constructor of an empty, invalid label
Referenced by SS7Label(), and SS7Label().
Swapping constructor, puts SPC into DPC and the other way around
| original | Label to swap |
| sls | Signalling Link Selection |
| spare | Spare bits |
References sls(), spare(), and SS7Label().
| SS7Label | ( | SS7PointCode::Type | type, |
| const SS7PointCode & | dpc, | ||
| const SS7PointCode & | opc, | ||
| unsigned char | sls, | ||
| unsigned char | spare = 0 ) |
| SS7Label | ( | SS7PointCode::Type | type, |
| unsigned int | dpc, | ||
| unsigned int | opc, | ||
| unsigned char | sls, | ||
| unsigned char | spare = 0 ) |
| SS7Label | ( | SS7PointCode::Type | type, |
| const SS7MSU & | msu ) |
Constructor from type and received MSU
| type | Type of point code to use to decode the MSU |
| msu | A received MSU to be parsed |
References type().
| bool assign | ( | SS7PointCode::Type | type, |
| const SS7MSU & | msu ) |
Assignment from type and received MSU
| type | Type of point code to use to decode the MSU |
| msu | A received MSU to be parsed |
References type().
| void assign | ( | SS7PointCode::Type | type, |
| const SS7PointCode & | dpc, | ||
| const SS7PointCode & | opc, | ||
| unsigned char | sls, | ||
| unsigned char | spare = 0 ) |
| bool assign | ( | SS7PointCode::Type | type, |
| const unsigned char * | src, | ||
| int | len = -1 ) |
Assignment from a packed memory block
| type | Type of the point codes in memory block |
| src | Pointer to packed label in memory |
| len | Length of data, negative to not check validity |
References type().
| void assign | ( | SS7PointCode::Type | type, |
| unsigned int | dpc, | ||
| unsigned int | opc, | ||
| unsigned char | sls, | ||
| unsigned char | spare = 0 ) |
| bool compatible | ( | SS7PointCode::Type | type | ) | const |
Check if the label is compatible with another packing type
References type().
|
inline |
Get a writable reference to the Destination Code Point inside the label
|
inline |
Get the Destination Code Point inside the label
Referenced by assign(), assign(), SS7Label(), and SS7Label().
|
inline |
Get the length (in bytes) of this routing label
References length().
Referenced by SS7MSU::getData(), SS7MSU::getData(), and length().
|
static |
Get the length (in bytes) of a packed routing label according to its type
| type | Type of the packing |
References type().
|
inline |
Get a writable reference to the Originating Code Point inside the label
|
inline |
Get the Originating Code Point inside the label
Referenced by assign(), assign(), SS7Label(), and SS7Label().
|
inline |
Set the Signalling Link Selection inside the label
| sls | New value of the SLS/SLC field |
References sls().
|
inline |
|
inline |
|
static |
Get the size (in bits) of a packed routing label according to its type
| type | Type of the packing |
References type().
|
inline |
Get the Signalling Link Selection inside the label
Referenced by assign(), assign(), setSls(), SS7Label(), SS7Label(), and SS7Label().
|
inline |
Get the spare bits inside the label
Referenced by assign(), assign(), setSpare(), SS7Label(), SS7Label(), and SS7Label().
| bool store | ( | unsigned char * | dest | ) | const |
Pack and store the label in a memory location
| dest | Location to store the label info, must be at least length() long |
|
inline |
Get the type (SS7 dialect) of the routing label
Referenced by assign(), assign(), assign(), assign(), compatible(), length(), size(), SS7Label(), SS7Label(), and SS7Label().