Yate
ISDNQ921Passive Class Reference

Stateless pasive ISDN Q.921 implementation on top of a hardware interface. More...

#include <yatesig.h>

Inheritance diagram for ISDNQ921Passive:
ISDNLayer2 SignallingReceiver SignallingDumpable SignallingComponent SignallingComponent RefObject DebugEnabler RefObject DebugEnabler GenObject GenObject

Public Member Functions

 ISDNQ921Passive (const NamedList &params, const char *name=0)
 
virtual ~ISDNQ921Passive ()
 
virtual void cleanup ()
 
virtual bool initialize (const NamedList *config)
 
void setDebug (bool printFrames, bool extendedDebug)
 
- Public Member Functions inherited from ISDNLayer2
virtual ~ISDNLayer2 ()
 
ISDNLayer3layer3 () const
 
State state () const
 
bool network () const
 
bool detectType () const
 
u_int8_t localSapi () const
 
u_int8_t localTei () const
 
u_int32_t maxUserData () const
 
bool teiAssigned () const
 
bool autoRestart () const
 
unsigned int upTime () const
 
virtual bool multipleFrame (u_int8_t tei, bool establish, bool force)
 
virtual bool sendData (const DataBlock &data, u_int8_t tei, bool ack)
 
virtual void attach (ISDNLayer3 *layer3)
 
- Public Member Functions inherited from SignallingComponent
virtual ~SignallingComponent ()
 
virtual const StringtoString () const
 
virtual NamedListcontrolCreate (const char *oper=0)
 
virtual bool controlExecute (NamedList *params)
 
virtual void engine (SignallingEngine *eng)
 
SignallingEngineengine () const
 
int debugLevel (int level)
 
const StringcomponentType () const
 
- Public Member Functions inherited from RefObject
 RefObject ()
 
virtual ~RefObject ()
 
virtual void * getObject (const String &name) const
 
virtual bool alive () const
 
bool ref ()
 
bool deref ()
 
int refcount () const
 
virtual void destruct ()
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual const StringtraceId () const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 
- Public Member Functions inherited from DebugEnabler
 DebugEnabler (int level=TelEngine::debugLevel(), bool enabled=true)
 
int debugLevel () const
 
int debugLevel (int level)
 
bool debugEnabled () const
 
void debugEnabled (bool enable)
 
const char * debugName () const
 
bool debugAt (int level) const
 
bool debugChained () const
 
void debugChain (const DebugEnabler *chain=0)
 
void debugCopy (const DebugEnabler *original=0)
 
- Public Member Functions inherited from SignallingReceiver
 SignallingReceiver (const char *name=0)
 
virtual ~SignallingReceiver ()
 
virtual SignallingInterfaceattach (SignallingInterface *iface)
 
SignallingInterfaceiface () const
 
bool control (SignallingInterface::Operation oper, NamedList *params=0)
 
- Public Member Functions inherited from SignallingDumpable
 ~SignallingDumpable ()
 

Protected Member Functions

virtual void destroyed ()
 
virtual void timerTick (const Time &when)
 
virtual bool receivedPacket (const DataBlock &packet)
 
virtual bool notify (SignallingInterface::Notification event)
 
- Protected Member Functions inherited from ISDNLayer2
 ISDNLayer2 (const NamedList &params, const char *name=0, u_int8_t tei=0)
 
Mutexl2Mutex ()
 
void multipleFrameEstablished (u_int8_t tei, bool confirm, bool timeout)
 
void multipleFrameReleased (u_int8_t tei, bool confirm, bool timeout)
 
void dataLinkState (u_int8_t tei, bool cmd, bool value)
 
void idleTimeout ()
 
void receiveData (const DataBlock &data, u_int8_t tei)
 
void teiAssigned (bool status)
 
void changeState (State newState, const char *reason=0)
 
bool changeType ()
 
void autoRestart (bool restart)
 
void setRi (u_int16_t ri)
 
ISDNFrameparsePacket (const DataBlock &packet)
 
- Protected Member Functions inherited from SignallingComponent
 SignallingComponent (const char *name=0, const NamedList *params=0, const char *type="unknown")
 
void insert (SignallingComponent *component)
 
virtual void detach ()
 
void setName (const char *name)
 
void setCompType (const char *type)
 
unsigned long tickSleep (unsigned long usec=1000000) const
 
- Protected Member Functions inherited from RefObject
virtual void zeroRefs ()
 
bool resurrect ()
 
- Protected Member Functions inherited from DebugEnabler
void debugName (const char *name)
 
- Protected Member Functions inherited from SignallingReceiver
bool transmitPacket (const DataBlock &packet, bool repeat, SignallingInterface::PacketType type=SignallingInterface::Unknown)
 
- Protected Member Functions inherited from SignallingDumpable
 SignallingDumpable (SignallingDumper::Type type, bool network=false)
 
bool dump (void *buf, unsigned int len, bool sent=false, int link=0)
 
bool dump (const DataBlock &data, bool sent=false, int link=0)
 
void setDumpNetwork (bool network)
 
void setDumper (SignallingDumper *dumper=0)
 
bool setDumper (const String &name, bool create=true, bool append=false)
 
bool control (NamedList &params, SignallingComponent *owner=0)
 

Additional Inherited Members

- Public Types inherited from ISDNLayer2
enum  State { Released , WaitEstablish , Established , WaitRelease }
 
- Static Public Member Functions inherited from ISDNLayer2
static const char * stateName (State s)
 
- Static Public Member Functions inherited from SignallingComponent
static bool resolveConfig (const String &cmpName, NamedList &params, const NamedList *config)
 
- Static Public Member Functions inherited from RefObject
static bool alive (const RefObject *obj)
 
static bool efficientIncDec ()
 
- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

Detailed Description

Stateless pasive ISDN Q.921 implementation on top of a hardware interface.

Q.921 ISDN Layer 2 pasive (stateless) implementation on top of a hardware HDLC interface

Constructor & Destructor Documentation

◆ ISDNQ921Passive()

ISDNQ921Passive ( const NamedList & params,
const char * name = 0 )

Constructor Initialize this object and the component

Parameters
paramsLayer's and TelEngine::ISDNLayer2 parameters
nameName of this component

◆ ~ISDNQ921Passive()

virtual ~ISDNQ921Passive ( )
virtual

Destructor

Member Function Documentation

◆ cleanup()

virtual void cleanup ( )
virtual

Emergency release Reset all data. Set state to 'Released' This method is thread safe

Implements ISDNLayer2.

◆ destroyed()

virtual void destroyed ( )
inlineprotectedvirtual

Detach links. Disposes memory

Reimplemented from SignallingComponent.

References ISDNLayer2::attach(), SignallingReceiver::attach(), and SignallingComponent::destroyed().

◆ initialize()

virtual bool initialize ( const NamedList * config)
virtual

Configure and initialize the passive Q.921 and its interface

Parameters
configOptional configuration parameters override
Returns
True if Q.921 and the interface were initialized properly

Reimplemented from SignallingComponent.

◆ notify()

virtual bool notify ( SignallingInterface::Notification event)
protectedvirtual

Process a notification generated by the attached interface This method is thread safe

Parameters
eventNotification event reported by the interface
Returns
True if notification was processed

Reimplemented from SignallingReceiver.

◆ receivedPacket()

virtual bool receivedPacket ( const DataBlock & packet)
protectedvirtual

Process a packet received by the receiver's interface This method is thread safe

Parameters
packetThe received packet
Returns
True if message was successfully processed

Implements SignallingReceiver.

◆ setDebug()

void setDebug ( bool printFrames,
bool extendedDebug )
inline

Set debug data of this layer

Parameters
printFramesEnable/disable frame printing on output
extendedDebugEnable/disable hex data dump if print frames is enabled

◆ timerTick()

virtual void timerTick ( const Time & when)
protectedvirtual

Method called periodically to check timeouts This method is thread safe

Parameters
whenTime to use as computing base for events and timeouts

Reimplemented from SignallingComponent.


The documentation for this class was generated from the following file: