<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Yate: ISDNQ921Pasive Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.7.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceTelEngine.html">TelEngine</a>::<a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html">ISDNQ921Pasive</a> </div> </div> <div class="contents"> <h1>ISDNQ921Pasive Class Reference</h1><!-- doxytag: class="TelEngine::ISDNQ921Pasive" --><!-- doxytag: inherits="TelEngine::ISDNLayer2,TelEngine::SignallingReceiver" -->Stateless pasive ISDN Q.921 implementation on top of a hardware interface. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="yatesig_8h-source.html">yatesig.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for ISDNQ921Pasive:</div> <div class="dynsection"> <p><center><img src="classTelEngine_1_1ISDNQ921Pasive.png" usemap="#ISDNQ921Pasive_map" border="0" alt=""></center> <map name="ISDNQ921Pasive_map"> <area href="classTelEngine_1_1ISDNLayer2.html" alt="ISDNLayer2" shape="rect" coords="70,112,200,136"> <area href="classTelEngine_1_1SignallingReceiver.html" alt="SignallingReceiver" shape="rect" coords="350,112,480,136"> <area href="classTelEngine_1_1SignallingComponent.html" alt="SignallingComponent" shape="rect" coords="70,56,200,80"> <area href="classTelEngine_1_1SignallingComponent.html" alt="SignallingComponent" shape="rect" coords="350,56,480,80"> <area href="classTelEngine_1_1GenObject.html" alt="GenObject" shape="rect" coords="0,0,130,24"> <area href="classTelEngine_1_1DebugEnabler.html" alt="DebugEnabler" shape="rect" coords="140,0,270,24"> <area href="classTelEngine_1_1GenObject.html" alt="GenObject" shape="rect" coords="280,0,410,24"> <area href="classTelEngine_1_1DebugEnabler.html" alt="DebugEnabler" shape="rect" coords="420,0,550,24"> </map> </div> <p> <a href="classTelEngine_1_1ISDNQ921Pasive-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#1f7d5cdcfc87cf892df4c7736f6e0d1a">ISDNQ921Pasive</a> (const <a class="el" href="classTelEngine_1_1NamedList.html">NamedList</a> &params, const char *name=0)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#edaa5430fc0a0278a42fde029a67d304">~ISDNQ921Pasive</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#09f4fe805fa9a54d4d68c5b29c1502e1">cleanup</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void * </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#aa71c3294b1a073c3ad0b64a2ed6325a">getObject</a> (const <a class="el" href="classTelEngine_1_1String.html">String</a> &name) const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#757ca89703a72ac56715edb379958716">destruct</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#31476688400a58f389ad2d7a35ff2f61">setDebug</a> (bool printFrames, bool extendedDebug)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#9e5c784c528f39ad68c680587539d04a">setDumper</a> (<a class="el" href="classTelEngine_1_1SignallingDumper.html">SignallingDumper</a> *dumper=0)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#c7cf24f02cfa3147bf2cbf6434edb9c0">timerTick</a> (const <a class="el" href="classTelEngine_1_1Time.html">Time</a> &when)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#e2f0cea80519672915fadd313eca986f">receivedPacket</a> (const <a class="el" href="classTelEngine_1_1DataBlock.html">DataBlock</a> &packet)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html#0fb541a2a5718bcea726c7ac8f800cbf">notify</a> (<a class="el" href="classTelEngine_1_1SignallingInterface.html#9b7018c6a58f6d63a9446fea1f12ad89">SignallingInterface::Notification</a> event)</td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> Stateless pasive ISDN Q.921 implementation on top of a hardware interface. <p> Q.921 ISDN Layer 2 pasive (stateless) implementation on top of a hardware HDLC interface <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="1f7d5cdcfc87cf892df4c7736f6e0d1a"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::ISDNQ921Pasive" ref="1f7d5cdcfc87cf892df4c7736f6e0d1a" args="(const NamedList &params, const char *name=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html">ISDNQ921Pasive</a> </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTelEngine_1_1NamedList.html">NamedList</a> & </td> <td class="paramname"> <em>params</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> = <code>0</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor Initialize this object and the component <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>params</em> </td><td>Layer's and <a class="el" href="classTelEngine_1_1ISDNLayer2.html">TelEngine::ISDNLayer2</a> parameters </td></tr> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Name of this component </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="edaa5430fc0a0278a42fde029a67d304"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::~ISDNQ921Pasive" ref="edaa5430fc0a0278a42fde029a67d304" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual ~<a class="el" href="classTelEngine_1_1ISDNQ921Pasive.html">ISDNQ921Pasive</a> </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="09f4fe805fa9a54d4d68c5b29c1502e1"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::cleanup" ref="09f4fe805fa9a54d4d68c5b29c1502e1" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void cleanup </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Emergency release Reset all data. Set state to 'Released' This method is thread safe <p>Implements <a class="el" href="classTelEngine_1_1ISDNLayer2.html#8f94dc33a3804ab30f2d2289ccd0494a">ISDNLayer2</a>.</p> </div> </div><p> <a class="anchor" name="757ca89703a72ac56715edb379958716"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::destruct" ref="757ca89703a72ac56715edb379958716" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void destruct </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Detach links. Disposes memory <p>Reimplemented from <a class="el" href="classTelEngine_1_1GenObject.html#757ca89703a72ac56715edb379958716">GenObject</a>.</p> <p>References <a class="el" href="classTelEngine_1_1SignallingReceiver.html#6333a828444db99c0b21db1baf54c9c3">SignallingReceiver::attach()</a>, <a class="el" href="classTelEngine_1_1ISDNLayer2.html#5f193c8ad439c312c17acad5bbd4f1a6">ISDNLayer2::attach()</a>, and <a class="el" href="yateclass_8h-source.html#l00650">TelEngine::destruct()</a>.</p> </div> </div><p> <a class="anchor" name="aa71c3294b1a073c3ad0b64a2ed6325a"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::getObject" ref="aa71c3294b1a073c3ad0b64a2ed6325a" args="(const String &name) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void* getObject </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTelEngine_1_1String.html">String</a> & </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td> const<code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get a pointer to a data member or this layer <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>Object name </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>The requested pointer or 0 if not exists </dd></dl> <p>Reimplemented from <a class="el" href="classTelEngine_1_1GenObject.html#aa71c3294b1a073c3ad0b64a2ed6325a">GenObject</a>.</p> </div> </div><p> <a class="anchor" name="0fb541a2a5718bcea726c7ac8f800cbf"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::notify" ref="0fb541a2a5718bcea726c7ac8f800cbf" args="(SignallingInterface::Notification event)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool notify </td> <td>(</td> <td class="paramtype"><a class="el" href="classTelEngine_1_1SignallingInterface.html#9b7018c6a58f6d63a9446fea1f12ad89">SignallingInterface::Notification</a> </td> <td class="paramname"> <em>event</em> </td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Process a notification generated by the attached interface This method is thread safe <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>event</em> </td><td>Notification event reported by the interface </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if notification was processed </dd></dl> <p>Reimplemented from <a class="el" href="classTelEngine_1_1SignallingReceiver.html#0fb541a2a5718bcea726c7ac8f800cbf">SignallingReceiver</a>.</p> </div> </div><p> <a class="anchor" name="e2f0cea80519672915fadd313eca986f"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::receivedPacket" ref="e2f0cea80519672915fadd313eca986f" args="(const DataBlock &packet)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual bool receivedPacket </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTelEngine_1_1DataBlock.html">DataBlock</a> & </td> <td class="paramname"> <em>packet</em> </td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Process a packet received by the receiver's interface This method is thread safe <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>packet</em> </td><td>The received packet </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>True if message was successfully processed </dd></dl> <p>Implements <a class="el" href="classTelEngine_1_1SignallingReceiver.html#66945d03318ad13a436f2ae5e55087fe">SignallingReceiver</a>.</p> </div> </div><p> <a class="anchor" name="31476688400a58f389ad2d7a35ff2f61"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::setDebug" ref="31476688400a58f389ad2d7a35ff2f61" args="(bool printFrames, bool extendedDebug)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void setDebug </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>printFrames</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>extendedDebug</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Set debug data of this layer <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>printFrames</em> </td><td>Enable/disable frame printing on output </td></tr> <tr><td valign="top"></td><td valign="top"><em>extendedDebug</em> </td><td>Enable/disable hex data dump if print frames is enabled </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="9e5c784c528f39ad68c680587539d04a"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::setDumper" ref="9e5c784c528f39ad68c680587539d04a" args="(SignallingDumper *dumper=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void setDumper </td> <td>(</td> <td class="paramtype"><a class="el" href="classTelEngine_1_1SignallingDumper.html">SignallingDumper</a> * </td> <td class="paramname"> <em>dumper</em> = <code>0</code> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Set or remove a data dumper <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>dumper</em> </td><td>Pointer to the data dumper object, 0 to remove </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="c7cf24f02cfa3147bf2cbf6434edb9c0"></a><!-- doxytag: member="TelEngine::ISDNQ921Pasive::timerTick" ref="c7cf24f02cfa3147bf2cbf6434edb9c0" args="(const Time &when)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void timerTick </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTelEngine_1_1Time.html">Time</a> & </td> <td class="paramname"> <em>when</em> </td> <td> ) </td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Method called periodically to check timeouts This method is thread safe <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>when</em> </td><td><a class="el" href="classTelEngine_1_1Time.html" title="A time holding class.">Time</a> to use as computing base for events and timeouts </td></tr> </table> </dl> <p>Reimplemented from <a class="el" href="classTelEngine_1_1SignallingComponent.html#c7cf24f02cfa3147bf2cbf6434edb9c0">SignallingComponent</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="yatesig_8h-source.html">yatesig.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Dec 7 21:36:14 2008 for Yate by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.7.1 </small></address> </body> </html>