#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 | transmitMSU (const SS7MSU &msu) |
virtual ObjList * | recoverMSU () |
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) |
virtual void | destruct () |
Protected Member Functions | |
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 | startProving () |
void | setDumper (SignallingDumper *dumper=0) |
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
virtual bool transmitMSU | ( | const SS7MSU & | msu | ) | [virtual] |
virtual ObjList* recoverMSU | ( | ) | [virtual] |
Remove the MSUs waiting in the transmit queue and return them
Implements SS7Layer2.
virtual unsigned int status | ( | ) | const [virtual] |
Retrive the current link status indications
Reimplemented from SS7Layer2.
virtual bool aligned | ( | ) | const [virtual] |
Check if the link is aligned. The link may not be operational, the other side may be still proving.
virtual bool operational | ( | ) | const [virtual] |
Check if the link is aligned and operational
Implements SS7Layer2.
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 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 void destruct | ( | ) | [inline, virtual] |
Remove all attachements. Disposes the memory
Reimplemented from GenObject.
References SignallingReceiver::attach(), SS7Layer2::attach(), and GenObject::destruct().
virtual void timerTick | ( | const Time & | when | ) | [protected, virtual] |
Periodical timer tick used to perform alignment and housekeeping
when | Time to use as computing base for events and timeouts |
Reimplemented from SignallingComponent.
virtual bool receivedPacket | ( | const DataBlock & | packet | ) | [protected, virtual] |
Process a Signalling Packet received by the hardware interface
Implements SignallingReceiver.
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 |
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
bool transmitFISU | ( | ) | [protected] |
Push a Fill-In Signal Unit down the protocol stack
void startAlignment | ( | bool | emergency = false |
) | [protected] |
Initiates alignment and proving procedure
emergency | True if emergency alignment is desired |
void abortAlignment | ( | ) | [protected] |
Abort an alignment procedure if link errors occur
bool startProving | ( | ) | [protected] |
Start the link proving period
void setDumper | ( | SignallingDumper * | dumper = 0 |
) | [protected] |
Set or remove a data dumper
dumper | Pointer to the data dumper object, NULL to remove |