|
Yate
|
Abstract SIGTRAN user adaptation component. More...
#include <yatesig.h>
Public Types | |
| enum | MsgClass { MGMT = 0, TRAN = 1, SSNM = 2, ASPSM = 3, ASPTM = 4, QPTM = 5, MAUP = 6, CLMSG = 7, COMSG = 8, RKM = 9, IIM = 10, M2PA = 11 } |
| enum | MsgMGMT { MgmtERR = 0, MgmtNTFY = 1 } |
| enum | MsgSSNM { SsnmDUNA = 1, SsnmDAVA = 2, SsnmDAUD = 3, SsnmSCON = 4, SsnmDUPU = 5, SsnmDRST = 6 } |
| enum | MsgASPSM { AspsmUP = 1, AspsmDOWN = 2, AspsmBEAT = 3, AspsmUP_ACK = 4, AspsmDOWN_ACK = 5, AspsmBEAT_ACK = 6 } |
| enum | MsgASPTM { AsptmACTIVE = 1, AsptmINACTIVE = 2, AsptmACTIVE_ACK = 3, AsptmINACTIVE_ACK = 4 } |
| enum | MsgRKM { RkmREG_REQ = 1, RkmREG_RSP = 2, RkmDEREG_REQ = 3, RkmDEREG_RSP = 4 } |
| enum | MsgIIM { IimREG_REQ = 1, IimREG_RSP = 2, IimDEREG_REQ = 3, IimDEREG_RSP = 4 } |
Public Member Functions | |
| SIGTRAN (u_int32_t payload=0, u_int16_t port=0) | |
| virtual | ~SIGTRAN () |
| virtual void | attach (SIGTransport *trans) |
| SIGTransport * | transport () const |
| u_int32_t | payload () const |
| u_int16_t | defPort () const |
| bool | connected (int streamId=0) const |
| virtual void | notifyLayer (SignallingInterface::Notification status) |
| bool | transmitMSG (unsigned char msgVersion, unsigned char msgClass, unsigned char msgType, const DataBlock &msg, int streamId=0) const |
| bool | transmitMSG (unsigned char msgClass, unsigned char msgType, const DataBlock &msg, int streamId=0) const |
| bool | restart (bool force) |
Static Public Member Functions | |
| static const TokenDict * | classNames () |
| static const char * | typeName (unsigned char msgClass, unsigned char msgType, const char *defValue=0) |
Protected Member Functions | |
| virtual bool | processMSG (unsigned char msgVersion, unsigned char msgClass, unsigned char msgType, const DataBlock &msg, int streamId)=0 |
Friends | |
| class | SIGTransport |
Abstract SIGTRAN user adaptation component.
An interface to a Signalling Transport user adaptation component
| enum MsgASPSM |
ASP State Maintenance messages
| enum MsgASPTM |
ASP Traffic Maintenance messages
| enum MsgIIM |
Interface Identifier Management messages
| enum MsgMGMT |
Management messages
| enum MsgRKM |
Routing Key Management messages
| enum MsgSSNM |
Signalling Network Management messages
| SIGTRAN | ( | u_int32_t | payload = 0, |
| u_int16_t | port = 0 |
||
| ) | [explicit] |
Constructs an uninitialized signalling transport
| payload | SCTP payload code, ignored for other transports |
| port | SCTP/TCP/UDP default port used for transport |
| virtual ~SIGTRAN | ( | ) | [virtual] |
Destructor, terminates transport layer
| virtual void attach | ( | SIGTransport * | trans | ) | [virtual] |
Attach a transport (connectivity provider)
| trans | Transport to attach to this component |
| static const TokenDict* classNames | ( | ) | [static] |
Message class names dictionary
| bool connected | ( | int | streamId = 0 | ) | const |
Check if the network transport layer is connected
| streamId | Identifier of the stream to check if applicable |
| u_int16_t defPort | ( | ) | const [inline] |
Get the default SCTP/TCP/UDP port used for transport
| u_int32_t payload | ( | ) | const [inline] |
Get the SCTP payload of this user adaptation component
| virtual bool processMSG | ( | unsigned char | msgVersion, |
| unsigned char | msgClass, | ||
| unsigned char | msgType, | ||
| const DataBlock & | msg, | ||
| int | streamId | ||
| ) | [protected, pure virtual] |
Process a complete message
| msgVersion | Version of the protocol |
| msgClass | Class of the message |
| msgType | Type of the message, depends on the class |
| msg | Message data, may be empty |
| streamId | Identifier of the stream the message was received on |
Implemented in ISDNIUAClient, SS7M2UAClient, and SS7M2PA.
| bool restart | ( | bool | force | ) |
Restart the underlaying transport
| force | True to hard restart, false to force restart if transport is down |
| bool transmitMSG | ( | unsigned char | msgVersion, |
| unsigned char | msgClass, | ||
| unsigned char | msgType, | ||
| const DataBlock & | msg, | ||
| int | streamId = 0 |
||
| ) | const |
Transmit a message to the network transport layer
| msgVersion | Version of the protocol |
| msgClass | Class of the message |
| msgType | Type of the message, depends on the class |
| msg | Message data, may be empty |
| streamId | Identifier of the stream to send the data over |
| bool transmitMSG | ( | unsigned char | msgClass, |
| unsigned char | msgType, | ||
| const DataBlock & | msg, | ||
| int | streamId = 0 |
||
| ) | const [inline] |
Transmit a message with default version to the network transport layer
| msgClass | Class of the message |
| msgType | Type of the message, depends on the class |
| msg | Message data, may be empty |
| streamId | Identifier of the stream to send the data over |
References SIGTRAN::transmitMSG().
Referenced by SIGTRAN::transmitMSG().
| SIGTransport* transport | ( | ) | const [inline] |
Get the transport of this user adaptation component
| static const char* typeName | ( | unsigned char | msgClass, |
| unsigned char | msgType, | ||
| const char * | defValue = 0 |
||
| ) | [static] |
Message types name lookup
| msgClass | Class of the message to look up |
| msgType | Type of the message, depends on the class |
| defValue | Value to return if lookup fails |
1.7.6.1