#include <yatesig.h>

Public Member Functions | |
| SignallingReceiver () | |
| virtual | ~SignallingReceiver () |
| virtual void | attach (SignallingInterface *iface) |
| SignallingInterface * | iface () const |
| bool | control (SignallingInterface::Operation oper, NamedList *params=0) |
Protected Member Functions | |
| bool | transmitPacket (const DataBlock &packet, bool repeat, SignallingInterface::PacketType type=SignallingInterface::Unknown) |
| virtual bool | receivedPacket (const DataBlock &packet)=0 |
| virtual bool | notify (SignallingInterface::Notification event) |
Friends | |
| class | SignallingInterface |
An interface to an abstraction of a Layer 2 packet data receiver
| SignallingReceiver | ( | ) | [inline] |
Constructor
| virtual ~SignallingReceiver | ( | ) | [virtual] |
Destructor, stops the interface and detaches from it
| virtual void attach | ( | SignallingInterface * | iface | ) | [virtual] |
Attach a hardware interface to the data link. Detach from the old one if valid
| iface | Pointer to interface to attach |
Referenced by ISDNQ921Pasive::destruct(), ISDNQ921::destruct(), and SS7MTP2::destruct().
| bool control | ( | SignallingInterface::Operation | oper, | |
| NamedList * | params = 0 | |||
| ) | [inline] |
Execute a control operation on the attached interface.
| oper | Operation to execute | |
| params | Optional parameters for the operation |
| SignallingInterface* iface | ( | ) | const [inline] |
Retrive the interface used by this receiver
| virtual bool notify | ( | SignallingInterface::Notification | event | ) | [protected, virtual] |
Process a notification generated by the attached interface
| event | Notification event reported by the interface |
Reimplemented in SS7MTP2, ISDNQ921, and ISDNQ921Pasive.
| virtual bool receivedPacket | ( | const DataBlock & | packet | ) | [protected, pure virtual] |
Process a Signalling Packet received by the interface
Implemented in SS7MTP2, ISDNQ921, and ISDNQ921Pasive.
| bool transmitPacket | ( | const DataBlock & | packet, | |
| bool | repeat, | |||
| SignallingInterface::PacketType | type = SignallingInterface::Unknown | |||
| ) | [inline, protected] |
Send a packet to the attached interface for transmission
| packet | Packet data to send | |
| repeat | Continuously send a copy of the packet while no other data is available for transmission | |
| type | Type of the packet to send |
1.5.7.1