|
Yate
|
Client side SIGTRAN User Adaptation component. More...
#include <yatesig.h>
Public Types | |
| enum | AspState { AspDown = 0, AspUpRq, AspUp, AspActRq, AspActive } |
Public Member Functions | |
| virtual void | notifyLayer (SignallingInterface::Notification status) |
Protected Member Functions | |
| SIGAdaptClient (const char *name=0, const NamedList *params=0, u_int32_t payload=0, u_int16_t port=0) | |
| virtual bool | processMgmtMSG (unsigned char msgType, const DataBlock &msg, int streamId) |
| virtual bool | processAspsmMSG (unsigned char msgType, const DataBlock &msg, int streamId) |
| virtual bool | processAsptmMSG (unsigned char msgType, const DataBlock &msg, int streamId) |
| virtual void | activeChange (bool active) |
| bool | aspUp () const |
| bool | aspActive () const |
| bool | activate () |
| void | setState (AspState state, bool notify=true) |
| ObjList & | users () |
Protected Attributes | |
| int32_t | m_aspId |
| TrafficMode | m_traffic |
Friends | |
| class | SIGAdaptUser |
Client side SIGTRAN User Adaptation component.
Generic client side (ASP) Signalling Transport User Adaptation component
| SIGAdaptClient | ( | const char * | name = 0, |
| const NamedList * | params = 0, |
||
| u_int32_t | payload = 0, |
||
| u_int16_t | port = 0 |
||
| ) | [explicit, protected] |
Constructs an uninitialized User Adaptation client component
| name | Name of this component |
| params | Optional pointer to creation parameters |
| payload | SCTP payload code, ignored for other transports |
| port | SCTP/TCP/UDP default port used for transport |
| bool activate | ( | ) | [protected] |
Request activation of the ASP
| virtual void activeChange | ( | bool | active | ) | [protected, virtual] |
Traffic activity state change notification
| active | True if the ASP is active and traffic is allowed |
| bool aspActive | ( | ) | const [inline, protected] |
Check if the ASP is Active
| bool aspUp | ( | ) | const [inline, protected] |
Check if the ASP is Up
| virtual void notifyLayer | ( | SignallingInterface::Notification | status | ) | [virtual] |
Method called when the transport status has been changed
| status | Status of the transport causing the notification |
Reimplemented from SIGTRAN.
| virtual bool processAspsmMSG | ( | unsigned char | msgType, |
| const DataBlock & | msg, | ||
| int | streamId | ||
| ) | [protected, virtual] |
Process ASP State Maintenance messages as ASP
| 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 |
Implements SIGAdaptation.
| virtual bool processAsptmMSG | ( | unsigned char | msgType, |
| const DataBlock & | msg, | ||
| int | streamId | ||
| ) | [protected, virtual] |
Process ASP Traffic Maintenance messages as ASP
| 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 |
Implements SIGAdaptation.
| virtual bool processMgmtMSG | ( | unsigned char | msgType, |
| const DataBlock & | msg, | ||
| int | streamId | ||
| ) | [protected, virtual] |
Process Management messages as ASP
| 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 |
Implements SIGAdaptation.
Set the state of the ASP, notify user components of changes
| state | New state of the ASP |
| notify | True to notify user layers, false if the changes are internal |
Get access to the list of Adaptation Users of this component
int32_t m_aspId [protected] |
ASP Identifier for ASPSM UP messages
TrafficMode m_traffic [protected] |
Traffic mode for ASPTM ACTIVE messages
1.7.6.1