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 } |
Public Member Functions | |
| SIGTRAN () | |
| virtual | ~SIGTRAN () |
| virtual void | attach (SIGTransport *trans) |
| SIGTransport * | transport () const |
| bool | connected (int streamId=0) const |
Static Public Member Functions | |
| static const TokenDict * | classNames () |
Protected Member Functions | |
| virtual bool | processMSG (unsigned char msgVersion, unsigned char msgClass, unsigned char msgType, const DataBlock &msg, int streamId)=0 |
| bool | transmitMSG (unsigned char msgVersion, unsigned char msgClass, unsigned char msgType, const DataBlock &msg, int streamId=0) const |
Friends | |
| class | SIGTransport |
Abstract SIGTRAN user adaptation component.
An interface to a Signalling Transport user adaptation component
| SIGTRAN | ( | ) |
Constructs an uninitialized signalling 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 |
| 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 |
| bool transmitMSG | ( | unsigned char | msgVersion, | |
| unsigned char | msgClass, | |||
| unsigned char | msgType, | |||
| const DataBlock & | msg, | |||
| int | streamId = 0 | |||
| ) | const [protected] |
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 |
| SIGTransport* transport | ( | ) | const [inline] |
Get the transport of this user adaptation component
1.6.3