class SIGAdaptation

Abstract SIGTRAN User Adaptation component. More...

Contains pure virtuals
Full nameTelEngine::SIGAdaptation
Definition#include <libs/ysig/yatesig.h>
InheritsTelEngine::Mutex [public ], TelEngine::SIGTRAN [public ], TelEngine::SignallingComponent [public ]
Inherited byISDNIUAClient, SIGAdaptClient, SIGAdaptServer, SS7M2UAClient
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods

Protected Methods


Detailed Description

An interface to a Signalling Transport User Adaptation component

enum TrafficMode { TrafficUnused = 0, TrafficOverride = 1, TrafficLoadShare = 2, TrafficBroadcast = 3, }

TrafficMode

Traffic modes

 ~SIGAdaptation ()

~SIGAdaptation

[virtual]

Destructor

bool  initialize (const NamedList* config)

initialize

[virtual]

Transport initialization

Parameters:
configConfiguration section for the adaptation

Reimplemented from SignallingComponent.

bool  nextTag (const DataBlock& data, int& offset, uint16_t& tag, uint16_t& length)

nextTag

[static]

Advance to next tag in a Type-Length-Value set of parameters

Parameters:
dataBlock of data containing TLV parameters
offsetOffset of current parameter in block, initialize to negative for first tag
tagType tag of returned parameter
lengthUnpadded length of returned parameter in octets

Returns: True if the current parameter was valid

bool  findTag (const DataBlock& data, int& offset, uint16_t tag, uint16_t& length)

findTag

[static]

Find a specific tag in a Type-Length-Value set of parameters

Parameters:
dataBlock of data containing TLV parameters
offsetOffset of current parameter in block, gets updated
tagType tag of searched parameter
lengthUnpadded length of returned parameter in octets

Returns: True if the requested parameter was found

bool  getTag (const DataBlock& data, uint16_t tag, uint32_t& value)

getTag

[static]

Get the value of a 32 bit integer parameter

Parameters:
dataBlock of data containing TLV parameters
tagType tag of searched parameter
valueVariable to store the decoded parameter if found

Returns: True if the requested parameter was found and decoded

bool  getTag (const DataBlock& data, uint16_t tag, String& value)

getTag

[static]

Get the value of a String parameter

Parameters:
dataBlock of data containing TLV parameters
tagType tag of searched parameter
valueVariable to store the decoded parameter if found

Returns: True if the requested parameter was found and decoded

bool  getTag (const DataBlock& data, uint16_t tag, DataBlock& value)

getTag

[static]

Get the value of a raw binary parameter

Parameters:
dataBlock of data containing TLV parameters
tagType tag of searched parameter
valueVariable to store the decoded parameter if found

Returns: True if the requested parameter was found and decoded

void  addTag (DataBlock& data, uint16_t tag, uint32_t value)

addTag

[static]

Add a 32 bit integer parameter

Parameters:
dataBlock of data containing TLV parameters
tagType tag of parameter to add
valueValue of parameter to add

void  addTag (DataBlock& data, uint16_t tag, const String& value)

addTag

[static]

Add a String parameter

Parameters:
dataBlock of data containing TLV parameters
tagType tag of parameter to add
valueValue of parameter to add

void  addTag (DataBlock& data, uint16_t tag, const DataBlock& value)

addTag

[static]

Add a raw binary parameter

Parameters:
dataBlock of data containing TLV parameters
tagType tag of parameter to add
valueValue of parameter to add

explicit  SIGAdaptation (const char* name = 0, const NamedList* params = 0, u_int32_t payload = 0, u_int16_t port = 0)

SIGAdaptation

[protected]

Constructs an uninitialized User Adaptation component

Parameters:
nameName of this component
paramsOptional pointer to creation parameters
payloadSCTP payload code, ignored for other transports
portSCTP/TCP/UDP default port used for transport

bool  processCommonMSG (unsigned char msgClass, unsigned char msgType, const DataBlock& msg, int streamId)

processCommonMSG

[protected virtual]

Processing of common management messages

Parameters:
msgClassClass of the message
msgTypeType of the message, depends on the class
msgMessage data, may be empty
streamIdIdentifier of the stream the message was received on

Returns: True if the message was handled

bool  processMgmtMSG (unsigned char msgType, const DataBlock& msg, int streamId)

processMgmtMSG

[protected pure virtual]

Abstract processing of Management messages

Parameters:
msgTypeType of the message, depends on the class
msgMessage data, may be empty
streamIdIdentifier of the stream the message was received on

Returns: True if the message was handled

bool  processAspsmMSG (unsigned char msgType, const DataBlock& msg, int streamId)

processAspsmMSG

[protected pure virtual]

Abstract processing of ASP State Maintenance messages

Parameters:
msgTypeType of the message, depends on the class
msgMessage data, may be empty
streamIdIdentifier of the stream the message was received on

Returns: True if the message was handled

bool  processAsptmMSG (unsigned char msgType, const DataBlock& msg, int streamId)

processAsptmMSG

[protected pure virtual]

Abstract processing of ASP Traffic Maintenance messages

Parameters:
msgTypeType of the message, depends on the class
msgMessage data, may be empty
streamIdIdentifier of the stream the message was received on

Returns: True if the message was handled


Generated by: paulc on bussard on Tue Mar 8 18:42:27 2011, using kdoc 2.0a54.