⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 classcradiusserverstack.html

📁 采用 ACE 开发的 radius 应用
💻 HTML
📖 第 1 页 / 共 2 页
字号:
          <td class="md" nowrap valign="top"><a class="el" href="classCRadiusPacket.html">CRadiusPacket</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>p_packet</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const ACE_INET_Addr &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>p_clientAddress</em></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"><code> [virtual]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Callback on request packet receive. <p>This callback may be used by user application to process request packet received from the network. If it wishes to send response packet, it should construct response and send it over the network using <a class="el" href="classCRadiusServerStack.html#a2">sendPacket()</a> method.<p>If application wishes to implement "asynchronic" architecture - it should create it's own copy of the received packet (use of <a class="el" href="classCRadiusPacket.html">CRadiusPacket</a> copy constructor is recommended) and be responsible for release of this copy when the processing is finished.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td><tt>[in]</tt>&nbsp;</td><td valign=top><em>p_packet</em>&nbsp;</td><td>- request packet </td></tr>    <tr><td><tt>[in]</tt>&nbsp;</td><td valign=top><em>p_clientAddress</em>&nbsp;</td><td>- address of RADIUS client that the packet was received from </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>RC_SUCCESS or RC_FAIL (currently it doesn't matter) </dd></dl>    </td>  </tr></table><a class="anchor" name="a2" doxytag="CRadiusServerStack::sendPacket" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int CRadiusServerStack::sendPacket           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classCRadiusPacket.html">CRadiusPacket</a> *&nbsp;</td>          <td class="mdname" nowrap> <em>p_packet</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>const ACE_INET_Addr &amp;&nbsp;</td>          <td class="mdname" nowrap> <em>p_clientAddress</em>, </td>        </tr>        <tr>          <td class="md" nowrap align="right"></td>          <td></td>          <td class="md" nowrap>int&nbsp;</td>          <td class="mdname" nowrap> <em>p_calculateAuthenticator</em> = <code>D_TRUE</code></td>        </tr>        <tr>          <td></td>          <td class="md">)&nbsp;</td>          <td class="md" colspan="2"></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Send packet to the network. <p>Packet may be freed immediately after this method returns (i.e. there is no internal queueing - method blocks until the packet is really transmitted to the network).<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td><tt>[in]</tt>&nbsp;</td><td valign=top><em>p_packet</em>&nbsp;</td><td>- response packet to be sent </td></tr>    <tr><td><tt>[in]</tt>&nbsp;</td><td valign=top><em>p_clientAddress</em>&nbsp;</td><td>- address of RADIUS client that response should be sent to </td></tr>    <tr><td><tt>[in]</tt>&nbsp;</td><td valign=top><em>p_calculateAuthenticator</em>&nbsp;</td><td>- calculate response authenticator prior to sending the packet; usually application constructs response packet, adds attribute to it and then calls <a class="el" href="classCRadiusServerStack.html#a2">sendPacket()</a> method, hence we in fact need to calculate response authenticator prior to sending the packet; </td></tr>  </table></dl><dl compact><dt><b>Returns:</b></dt><dd>RC_SUCCESS if packet was successfully transmitted to the network; RC_FAIL otherwise </dd></dl>    </td>  </tr></table><a class="anchor" name="a7" doxytag="CRadiusServerStack::setSecret" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> void CRadiusServerStack::setSecret           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top"><a class="el" href="classCRadiusSecret.html">CRadiusSecret</a> *&nbsp;</td>          <td class="mdname1" valign="top" nowrap> <em>p_secret</em>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Set instance of RADIUS secret class. <p>Use this interface to switch <a class="el" href="classCRadiusSecret.html">CRadiusSecret</a> instance that this Server Stack works with.     </td>  </tr></table><a class="anchor" name="a1" doxytag="CRadiusServerStack::start" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" nowrap valign="top"> int CRadiusServerStack::start           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">void&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Start underlying thread. <p><dl compact><dt><b>Returns:</b></dt><dd>RC_SUCCESS if thread was successfully created and started; RC_FAIL otherwise </dd></dl>    </td>  </tr></table><hr>The documentation for this class was generated from the following files:<ul><li>RADIUS/<a class="el" href="CRadiusServerStack_8h-source.html">CRadiusServerStack.h</a><li>RADIUS/CRadiusServerStack.cpp</ul><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 30 11:00:58 2005 for ace-radius by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7-20040704 </small></address></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -