Yate
|
Abstract Layer 2 packet data receiver. More...
#include <yatesig.h>
Public Member Functions | |
SignallingReceiver (const char *name=0) | |
virtual | ~SignallingReceiver () |
virtual SignallingInterface * | 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 |
Abstract Layer 2 packet data receiver.
An interface to an abstraction of a Layer 2 packet data receiver
SignallingReceiver | ( | const char * | name = 0 | ) |
Constructor
name | Name of the component to create |
virtual ~SignallingReceiver | ( | ) | [virtual] |
Destructor, stops the interface and detaches from it
virtual SignallingInterface* 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 ISDNQ921Passive::destroyed(), ISDNQ921::destroyed(), and SS7MTP2::destroyed().
bool control | ( | SignallingInterface::Operation | oper, |
NamedList * | params = 0 |
||
) |
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, ISDNQ921Management, and ISDNQ921Passive.
virtual bool receivedPacket | ( | const DataBlock & | packet | ) | [protected, pure virtual] |
Process a Signalling Packet received by the interface
Implemented in SS7MTP2, ISDNQ921, ISDNQ921Management, and ISDNQ921Passive.
bool transmitPacket | ( | const DataBlock & | packet, |
bool | repeat, | ||
SignallingInterface::PacketType | type = SignallingInterface::Unknown |
||
) | [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 |