class SS7Label

SS7 Routing Label. More...

Full nameTelEngine::SS7Label
Definition#include <libs/ysig/yatesig.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Static Methods


Detailed Description

A SS7 Layer 3 routing label, both ANSI and ITU capable

 SS7Label ()

SS7Label

Constructor of an empty, invalid label

 SS7Label (const SS7Label& original)

SS7Label

Copy constructor

Parameters:
originalLabel to copy

 SS7Label (const SS7Label& original, unsigned char sls, unsigned char spare = 0)

SS7Label

Swapping constructor, puts SPC into DPC and the other way around

Parameters:
originalLabel to swap
slsSignalling Link Selection
spareSpare bits

 SS7Label (SS7PointCode::Type type, const SS7PointCode& dpc, const SS7PointCode& opc, unsigned char sls, unsigned char spare = 0)

SS7Label

Constructor from label components

Parameters:
typeType of point code used to pack the label
dpcDestination Point Code
opcOriginating Point Code
slsSignalling Link Selection
spareSpare bits

 SS7Label (SS7PointCode::Type type, unsigned int dpc, unsigned int opc, unsigned char sls, unsigned char spare = 0)

SS7Label

Constructor from packed label components

Parameters:
typeType of point code used to pack the label
dpcDestination Point Code
opcOriginating Point Code
slsSignalling Link Selection
spareSpare bits

 SS7Label (SS7PointCode::Type type, const SS7MSU& msu)

SS7Label

Constructor from type and received MSU

Parameters:
typeType of point code to use to decode the MSU
msuA received MSU to be parsed

void  assign (SS7PointCode::Type type, const SS7PointCode& dpc, const SS7PointCode& opc, unsigned char sls, unsigned char spare = 0)

assign

Assignment from label components

Parameters:
typeType of point code used to pack the label
dpcDestination Point Code
opcOriginating Point Code
slsSignalling Link Selection
spareSpare bits

void  assign (SS7PointCode::Type type, unsigned int dpc, unsigned int opc, unsigned char sls, unsigned char spare = 0)

assign

Assignment from packed label components

Parameters:
typeType of point code used to pack the label
dpcDestination Point Code
opcOriginating Point Code
slsSignalling Link Selection
spareSpare bits

bool  assign (SS7PointCode::Type type, const SS7MSU& msu)

assign

Assignment from type and received MSU

Parameters:
typeType of point code to use to decode the MSU
msuA received MSU to be parsed

Returns: True if the assignment succeeded

bool  assign (SS7PointCode::Type type, const unsigned char* src, int len = -1)

assign

Assignment from a packed memory block

Parameters:
typeType of the point codes in memory block
srcPointer to packed label in memory
lenLength of data, negative to not check validity

Returns: True if success, false if invalid type or memory area

bool  store (unsigned char* dest)

store

[const]

Pack and store the label in a memory location

Parameters:
destLocation to store the label info, must be at least length() long

Returns: True on success, false if type is invalid

bool  compatible (SS7PointCode::Type type)

compatible

[const]

Check if the label is compatible with another packing type

Returns: True if the DLC, SLC and SLS fit in the new packing format

inline SS7PointCode::Type  type ()

type

[const]

Get the type (SS7 dialect) of the routing label

Returns: Dialect of the routing label as enumeration

inline const SS7PointCode&  dpc ()

dpc

[const]

Get the Destination Code Point inside the label

Returns: Reference of the destination code point

inline SS7PointCode&  dpc ()

dpc

Get a writable reference to the Destination Code Point inside the label

Returns: Reference of the destination code point

inline const SS7PointCode&  opc ()

opc

[const]

Get the Originating Code Point inside the label

Returns: Reference of the source code point

inline SS7PointCode&  opc ()

opc

Get a writable reference to the Originating Code Point inside the label

Returns: Reference of the originating code point

inline unsigned char  sls ()

sls

[const]

Get the Signalling Link Selection inside the label

Returns: Value of the SLS field

inline void  setSls (unsigned char sls)

setSls

Set the Signalling Link Selection inside the label

Parameters:
slsNew value of the SLS/SLC field

inline unsigned char  spare ()

spare

[const]

Get the spare bits inside the label

Returns: Value of the bits not included in DPC, OPC, or SLS

inline void  setSpare (unsigned char spare)

setSpare

Set the spare bits inside the label

Parameters:
spareNew value of the spare bits

inline unsigned int  length ()

length

[const]

Get the length (in bytes) of this routing label

Returns: Number of bytes required to represent the label, zero if unknown

unsigned int  length (SS7PointCode::Type type)

length

[static]

Get the length (in bytes) of a packed routing label according to its type

Parameters:
typeType of the packing

Returns: Number of bytes required to represent the label, zero if unknown

inline unsigned char  size ()

size

[const]

Get the size (in bits) of this routing label except the spare bits

Returns: Number of bits required to represent this label, zero if unknown

unsigned char  size (SS7PointCode::Type type)

size

[static]

Get the size (in bits) of a packed routing label according to its type

Parameters:
typeType of the packing

Returns: Number of bits required to represent the label, zero if unknown


Generated by: paulc on bussard on Tue Apr 12 17:15:21 2011, using kdoc 2.0a54.