Abstract SIGTRAN user adaptation component.
More...
#include <yatesig.h>
|
| 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
} |
| |
|
| | 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) |
| |
| bool | getSocketParams (const String ¶ms, NamedList &result) |
| |
| virtual bool | transportNotify (SIGTransport *newTransport, const SocketAddr &addr) |
| |
| bool | hasTransportThread () |
| |
| void | stopTransportThread () |
| |
|
| static const TokenDict * | classNames () |
| |
| static const char * | typeName (unsigned char msgClass, unsigned char msgType, const char *defValue=0) |
| |
|
| virtual bool | processMSG (unsigned char msgVersion, unsigned char msgClass, unsigned char msgType, const DataBlock &msg, int streamId)=0 |
| |
Abstract SIGTRAN user adaptation component.
An interface to a Signalling Transport user adaptation component
◆ MsgASPSM
ASP State Maintenance messages
◆ MsgASPTM
ASP Traffic Maintenance messages
◆ MsgClass
◆ MsgIIM
Interface Identifier Management messages
◆ MsgMGMT
◆ MsgRKM
Routing Key Management messages
◆ MsgSSNM
Signalling Network Management messages
◆ SIGTRAN()
| SIGTRAN |
( |
u_int32_t | payload = 0, |
|
|
u_int16_t | port = 0 ) |
|
explicit |
Constructs an uninitialized signalling transport
- Parameters
-
| payload | SCTP payload code, ignored for other transports |
| port | SCTP/TCP/UDP default port used for transport |
References payload().
◆ ~SIGTRAN()
Destructor, terminates transport layer
◆ attach()
Attach a transport (connectivity provider)
- Parameters
-
| trans | Transport to attach to this component |
◆ classNames()
Message class names dictionary
- Returns
- Pointer to dictionary of message classes
◆ connected()
| bool connected |
( |
int | streamId = 0 | ) |
const |
Check if the network transport layer is connected
- Parameters
-
| streamId | Identifier of the stream to check if applicable |
- Returns
- True if the transport (and stream if applicable) is connected
◆ defPort()
| u_int16_t defPort |
( |
| ) |
const |
|
inline |
Get the default SCTP/TCP/UDP port used for transport
- Returns
- Default protocol port, 0 if unknown or not set
◆ getSocketParams()
Get sctp socket parameters.
- Parameters
-
| params | List of parameters to obtain |
| result | List of parameters to fill |
- Returns
- True if operation was successful, false if an error occurred
◆ hasTransportThread()
| bool hasTransportThread |
( |
| ) |
|
Check if the transport thread is running
- Returns
- true if the transport thread is running
◆ notifyLayer()
◆ payload()
| u_int32_t payload |
( |
| ) |
const |
|
inline |
◆ processMSG()
| virtual bool processMSG |
( |
unsigned char | msgVersion, |
|
|
unsigned char | msgClass, |
|
|
unsigned char | msgType, |
|
|
const DataBlock & | msg, |
|
|
int | streamId ) |
|
protectedpure virtual |
Process a complete message
- Parameters
-
| 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 |
- Returns
- True if the message was handled
Implemented in ISDNIUAClient, SS7M2PA, and SS7M2UAClient.
◆ restart()
| bool restart |
( |
bool | force | ) |
|
Restart the underlaying transport
- Parameters
-
| force | True to hard restart, false to force restart if transport is down |
- Returns
- True if the transport was notified that it needs to restart
◆ stopTransportThread()
| void stopTransportThread |
( |
| ) |
|
Stop the transport thread
◆ transmitMSG() [1/2]
| 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
- Parameters
-
| 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 |
- Returns
- True if the message was transmitted to network
References transmitMSG().
◆ transmitMSG() [2/2]
| 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
- Parameters
-
| 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 |
- Returns
- True if the message was transmitted to network
Referenced by transmitMSG().
◆ transport()
Get the transport of this user adaptation component
- Returns
- Pointer to the transport layer or NULL
◆ transportNotify()
Notification that a new incomming connection has been made
- Parameters
-
| newTransport | The new created transport |
| addr | The newly created transport socket address |
- Returns
- True if the newTransport will be used.
◆ typeName()
| static const char * typeName |
( |
unsigned char | msgClass, |
|
|
unsigned char | msgType, |
|
|
const char * | defValue = 0 ) |
|
static |
Message types name lookup
- Parameters
-
| msgClass | Class of the message to look up |
| msgType | Type of the message, depends on the class |
| defValue | Value to return if lookup fails |
- Returns
- Pointer to message type name
The documentation for this class was generated from the following file: