|
| ||||||||||||||||
A an abstraction offering connectivity to a SIGTRAN transport
| enum Transport { None = 0, Sctp, Tcp, Udp, Unix, } | Transport |
Type of transport used
| inline SIGTRAN* sigtran ()
| sigtran |
[const]
Get the SIGTRAN component attached to this transport
Returns: Pointer to adaptation layer or NULL
| bool connected (int streamId)
| connected |
[const pure virtual]
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
| inline SIGTransport (const char* name = 0)
| SIGTransport |
[protected]
Constructor
Parameters:
| name | Default empty component name |
| void attach (SIGTRAN* sigtran)
| attach |
[protected]
Attach an user adaptation layer
Parameters:
| sigtran | SIGTRAN component to attach, can be NULL |
| void attached (bool hasUAL)
| attached |
[protected pure virtual]
Notification if the attached state changed
Parameters:
| hasUAL | True if an User Adaptation Layer is now attached |
| bool processMSG (unsigned char msgVersion, unsigned char msgClass,
unsigned char msgType, const DataBlock& msg, int streamId)
| processMSG |
[protected const]
Send a complete message to the adaptation layer for processing
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
| bool transmitMSG (unsigned char msgVersion, unsigned char msgClass,
unsigned char msgType, const DataBlock& msg, int streamId = 0)
| transmitMSG |
[protected virtual]
Transmit a message to the network
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
| bool transmitMSG (const DataBlock& header, const DataBlock& msg, int streamId = 0)
| transmitMSG |
[protected pure virtual]
Transmit a prepared message to the network
Parameters:
| header | Message header, typically 8 octets |
| 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
| Generated by: paulc on bussard on Mon Mar 8 12:18:15 2010, using kdoc 2.0a54. |