Yate
|
SS7 Layer 2 implementation on top of a hardware interface. More...
#include <yatesig.h>
Public Types | |
enum | ErrorCorrection { Basic, Preventive, Adaptive } |
Public Member Functions | |
SS7MTP2 (const NamedList ¶ms, unsigned int status=OutOfService) | |
virtual | ~SS7MTP2 () |
virtual bool | initialize (const NamedList *config) |
virtual bool | transmitMSU (const SS7MSU &msu) |
virtual void | recoverMSU (int sequence) |
virtual unsigned int | status () const |
virtual bool | aligned () const |
virtual bool | operational () const |
virtual bool | control (Operation oper, NamedList *params=0) |
virtual bool | notify (SignallingInterface::Notification event) |
Protected Member Functions | |
virtual void | destroyed () |
virtual void | timerTick (const Time &when) |
virtual bool | receivedPacket (const DataBlock &packet) |
virtual void | processFISU () |
virtual void | processLSSU (unsigned int status) |
bool | transmitLSSU (unsigned int status) |
bool | transmitLSSU () |
bool | transmitFISU () |
void | startAlignment (bool emergency=false) |
void | abortAlignment (bool retry=true) |
bool | startProving () |
SS7 Layer 2 implementation on top of a hardware interface.
Q.703 SS7 Layer 2 (Data Link) implementation on top of a hardware interface
enum ErrorCorrection |
Types of error correction
Constructor
params | Layer's parameters |
status | Initial status |
virtual ~SS7MTP2 | ( | ) | [virtual] |
Destructor
void abortAlignment | ( | bool | retry = true | ) | [protected] |
Abort an alignment procedure if link errors occur
retry | Keep trying to align |
virtual bool aligned | ( | ) | const [virtual] |
Check if the link is aligned. The link may not be operational, the other side may be still proving.
Execute a control operation. Operations can change the link status or can query the aligned status.
oper | Operation to execute |
params | Optional parameters for the operation |
Reimplemented from SS7Layer2.
virtual void destroyed | ( | ) | [inline, protected, virtual] |
Remove all attachements. Disposes the memory
Reimplemented from SignallingComponent.
References SignallingReceiver::attach(), SS7Layer2::attach(), SignallingComponent::destroyed(), and TelEngine::destruct().
virtual bool initialize | ( | const NamedList * | config | ) | [virtual] |
Configure and initialize MTP2 and its interface
config | Optional configuration parameters override |
Reimplemented from SignallingComponent.
virtual bool notify | ( | SignallingInterface::Notification | event | ) | [virtual] |
Process a notification generated by the attached interface
event | Notification event reported by the interface |
Reimplemented from SignallingReceiver.
virtual bool operational | ( | ) | const [virtual] |
Check if the link is aligned and operational
Implements SS7Layer2.
virtual void processFISU | ( | ) | [protected, virtual] |
Process a received Fill-In Signal Unit
virtual void processLSSU | ( | unsigned int | status | ) | [protected, virtual] |
Process a received Link Status Signal Unit
status | Link status indications |
virtual bool receivedPacket | ( | const DataBlock & | packet | ) | [protected, virtual] |
Process a Signalling Packet received by the hardware interface
Implements SignallingReceiver.
virtual void recoverMSU | ( | int | sequence | ) | [virtual] |
Remove the MSUs waiting in the transmit queue and return them
sequence | First sequence number to recover, flush earlier packets |
Reimplemented from SS7Layer2.
void startAlignment | ( | bool | emergency = false | ) | [protected] |
Initiates alignment and proving procedure
emergency | True if emergency alignment is desired |
bool startProving | ( | ) | [protected] |
Start the link proving period
virtual unsigned int status | ( | ) | const [virtual] |
Retrieve the current link status indications
Reimplemented from SS7Layer2.
bool transmitFISU | ( | ) | [protected] |
Push a Fill-In Signal Unit down the protocol stack
bool transmitLSSU | ( | unsigned int | status | ) | [protected] |
Push a Link Status Signal Unit down the protocol stack
status | Link status indications |
bool transmitLSSU | ( | ) | [inline, protected] |
Push a Link Status Signal Unit with the current status down the protocol stack
References SS7MTP2::transmitLSSU().
Referenced by SS7MTP2::transmitLSSU().
virtual bool transmitMSU | ( | const SS7MSU & | msu | ) | [virtual] |