<!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: SS7Route 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_1SS7Route.html">SS7Route</a> </div> </div> <div class="contents"> <h1>SS7Route Class Reference</h1><!-- doxytag: class="TelEngine::SS7Route" --><!-- doxytag: inherits="TelEngine::GenObject" -->A SS7 MSU route. <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 SS7Route:</div> <div class="dynsection"> <p><center><img src="classTelEngine_1_1SS7Route.png" usemap="#SS7Route_map" border="0" alt=""></center> <map name="SS7Route_map"> <area href="classTelEngine_1_1GenObject.html" alt="GenObject" shape="rect" coords="0,0,72,24"> </map> </div> <p> <a href="classTelEngine_1_1SS7Route-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_1SS7Route.html#c152b6e979ec85163c234ae0403529fa">SS7Route</a> (unsigned int packed, unsigned int priority=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_1SS7Route.html#acc2c6f458664da9647c29e0f19bf9a2">~SS7Route</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_1SS7Route.html#00b009e9e8dda7ff8b1559d65b4ca356">attach</a> (<a class="el" href="classTelEngine_1_1SS7Layer3.html">SS7Layer3</a> *network, <a class="el" href="classTelEngine_1_1SS7PointCode.html#1d1cfd8ffb84e947f82999c682b666a7">SS7PointCode::Type</a> type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1SS7Route.html#97791b856942df03af0dfc29f961463a">detach</a> (<a class="el" href="classTelEngine_1_1SS7Layer3.html">SS7Layer3</a> *network)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classTelEngine_1_1SS7Route.html#6d4b7f74209522667c447c35afd89b2c">transmitMSU</a> (const <a class="el" href="classTelEngine_1_1SS7Router.html">SS7Router</a> *router, const <a class="el" href="classTelEngine_1_1SS7MSU.html">SS7MSU</a> &msu, const <a class="el" href="classTelEngine_1_1SS7Label.html">SS7Label</a> &label, int sls)</td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="3ea825cb8d194a85579fee60b50e3ec9"></a><!-- doxytag: member="TelEngine::SS7Route::SS7Layer3" ref="3ea825cb8d194a85579fee60b50e3ec9" args="" --> class </td><td class="memItemRight" valign="bottom"><b>SS7Layer3</b></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A SS7 MSU route. <p> Keeps a packed destination point code, a network priority or a list of networks used to route to the enclosed destination point code <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="c152b6e979ec85163c234ae0403529fa"></a><!-- doxytag: member="TelEngine::SS7Route::SS7Route" ref="c152b6e979ec85163c234ae0403529fa" args="(unsigned int packed, unsigned int priority=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classTelEngine_1_1SS7Route.html">SS7Route</a> </td> <td>(</td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>packed</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>priority</em> = <code>0</code></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> Constructor <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>packed</em> </td><td>The packed value of the destination point code </td></tr> <tr><td valign="top"></td><td valign="top"><em>priority</em> </td><td>Optional value of the network priority </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="acc2c6f458664da9647c29e0f19bf9a2"></a><!-- doxytag: member="TelEngine::SS7Route::~SS7Route" ref="acc2c6f458664da9647c29e0f19bf9a2" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual ~<a class="el" href="classTelEngine_1_1SS7Route.html">SS7Route</a> </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="00b009e9e8dda7ff8b1559d65b4ca356"></a><!-- doxytag: member="TelEngine::SS7Route::attach" ref="00b009e9e8dda7ff8b1559d65b4ca356" args="(SS7Layer3 *network, SS7PointCode::Type type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void attach </td> <td>(</td> <td class="paramtype"><a class="el" href="classTelEngine_1_1SS7Layer3.html">SS7Layer3</a> * </td> <td class="paramname"> <em>network</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classTelEngine_1_1SS7PointCode.html#1d1cfd8ffb84e947f82999c682b666a7">SS7PointCode::Type</a> </td> <td class="paramname"> <em>type</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Attach a network to use for this destination or change its priority. 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>network</em> </td><td>The network to attach or change priority </td></tr> <tr><td valign="top"></td><td valign="top"><em>type</em> </td><td>The point code type used to get the priority from the given network or the networks already in the list </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="97791b856942df03af0dfc29f961463a"></a><!-- doxytag: member="TelEngine::SS7Route::detach" ref="97791b856942df03af0dfc29f961463a" args="(SS7Layer3 *network)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool detach </td> <td>(</td> <td class="paramtype"><a class="el" href="classTelEngine_1_1SS7Layer3.html">SS7Layer3</a> * </td> <td class="paramname"> <em>network</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Remove a network from the list without deleting it. 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>network</em> </td><td>The network to remove </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>False if the list of networks is empty </dd></dl> </div> </div><p> <a class="anchor" name="6d4b7f74209522667c447c35afd89b2c"></a><!-- doxytag: member="TelEngine::SS7Route::transmitMSU" ref="6d4b7f74209522667c447c35afd89b2c" args="(const SS7Router *router, const SS7MSU &msu, const SS7Label &label, int sls)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int transmitMSU </td> <td>(</td> <td class="paramtype">const <a class="el" href="classTelEngine_1_1SS7Router.html">SS7Router</a> * </td> <td class="paramname"> <em>router</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classTelEngine_1_1SS7MSU.html">SS7MSU</a> & </td> <td class="paramname"> <em>msu</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classTelEngine_1_1SS7Label.html">SS7Label</a> & </td> <td class="paramname"> <em>label</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"> <em>sls</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Try to transmit a MSU through one of the attached networks. 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>router</em> </td><td>The router requesting the operation (used for debug) </td></tr> <tr><td valign="top"></td><td valign="top"><em>msu</em> </td><td><a class="el" href="classTelEngine_1_1Message.html" title="A message container class.">Message</a> data, starting with Service Indicator Octet </td></tr> <tr><td valign="top"></td><td valign="top"><em>label</em> </td><td>Routing label of the MSU </td></tr> <tr><td valign="top"></td><td valign="top"><em>sls</em> </td><td>Signalling Link Selection, negative to choose best </td></tr> </table> </dl> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Link the message was successfully queued to, negative for error </dd></dl> </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>