|
Yate
|
Stateless pasive ISDN Q.921 implementation on top of a hardware interface. More...
#include <yatesig.h>
Public Member Functions | |
| ISDNQ921Passive (const NamedList ¶ms, 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 () |
| ISDNLayer3 * | layer3 () 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 String & | toString () const |
| virtual NamedList * | controlCreate (const char *oper=0) |
| virtual bool | controlExecute (NamedList *params) |
| virtual void | engine (SignallingEngine *eng) |
| SignallingEngine * | engine () const |
| int | debugLevel (int level) |
| const String & | componentType () 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 String & | traceId () const |
| NamedCounter * | getObjCounter () const |
| NamedCounter * | setObjCounter (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 SignallingInterface * | attach (SignallingInterface *iface) |
| SignallingInterface * | iface () 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 ¶ms, const char *name=0, u_int8_t tei=0) | |
| Mutex & | l2Mutex () |
| 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) |
| ISDNFrame * | parsePacket (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 ¶ms, 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 ¶ms, 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 NamedCounter * | getObjCounter (const String &name, bool create=true) |
| static ObjList & | getObjCounters () |
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
| ISDNQ921Passive | ( | const NamedList & | params, |
| const char * | name = 0 ) |
Constructor Initialize this object and the component
| params | Layer's and TelEngine::ISDNLayer2 parameters |
| name | Name of this component |
|
virtual |
Destructor
|
virtual |
Emergency release Reset all data. Set state to 'Released' This method is thread safe
Implements ISDNLayer2.
|
inlineprotectedvirtual |
Detach links. Disposes memory
Reimplemented from SignallingComponent.
References ISDNLayer2::attach(), SignallingReceiver::attach(), and SignallingComponent::destroyed().
|
virtual |
Configure and initialize the passive Q.921 and its interface
| config | Optional configuration parameters override |
Reimplemented from SignallingComponent.
|
protectedvirtual |
Process a notification generated by the attached interface This method is thread safe
| event | Notification event reported by the interface |
Reimplemented from SignallingReceiver.
|
protectedvirtual |
Process a packet received by the receiver's interface This method is thread safe
| packet | The received packet |
Implements SignallingReceiver.
|
inline |
Set debug data of this layer
| printFrames | Enable/disable frame printing on output |
| extendedDebug | Enable/disable hex data dump if print frames is enabled |
|
protectedvirtual |
Method called periodically to check timeouts This method is thread safe
| when | Time to use as computing base for events and timeouts |
Reimplemented from SignallingComponent.