📄 cradiusclientstack_8h-source.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>ace-radius: RADIUS/CRadiusClientStack.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.3.7-20040704 --><div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Class Members</a></div><h1>RADIUS/CRadiusClientStack.h</h1><pre class="fragment"><div>00001 <span class="comment">/*</span>00002 <span class="comment"> * This source file is part of the ace-radius library. This code was</span>00003 <span class="comment"> * written by Alex Agranov in 2004, and is covered by the BSD open source</span>00004 <span class="comment"> * license. Refer to the accompanying documentation for details on usage and</span>00005 <span class="comment"> * license.</span>00006 <span class="comment"> */</span>00007 00008 <span class="preprocessor">#ifndef _CRADIUSCLIENTSTACK_H__</span>00009 <span class="preprocessor"></span><span class="preprocessor">#define _CRADIUSCLIENTSTACK_H__</span>00010 <span class="preprocessor"></span>00011 <span class="preprocessor">#include "Global.h"</span>00012 <span class="preprocessor">#include "ace/Unbounded_Queue.h"</span>00013 00014 00015 <span class="keyword">class </span><a class="code" href="classCRadiusClientConnection.html">CRadiusClientConnection</a>;00016 <span class="keyword">class </span><a class="code" href="classCRadiusPacket.html">CRadiusPacket</a>;00017 <span class="keyword">class </span><a class="code" href="classCRadiusClientData.html">CRadiusClientData</a>;00018 <a name="l00042"></a><a class="code" href="classCRadiusClientStack.html">00042</a> <span class="keyword">class </span><a class="code" href="classCRadiusClientStack.html">CRadiusClientStack</a>00043 {00044 <span class="keyword">public</span>:00046 00049 <a class="code" href="classCRadiusClientStack.html#a0">CRadiusClientStack</a>(ACE_Allocator * p_allocator = NULL);00050 00052 00064 <span class="keywordtype">int</span> <a class="code" href="classCRadiusClientStack.html#a1">sendPacket</a>(<a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * p_packet);00065 00066 00068 00080 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRadiusClientStack.html#a2">handleResponse</a>(<a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * p_responsePacket, <a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * p_requestPacket);00081 00083 00092 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRadiusClientStack.html#a3">handleTransmitFailure</a>(<a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * p_packet);00093 00094 00096 00100 <a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * <a class="code" href="classCRadiusClientStack.html#a4">seizePacket</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> p_code);00101 00103 00106 <span class="keywordtype">void</span> <a class="code" href="classCRadiusClientStack.html#a5">releasePacket</a>(<a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * p_packet);00107 00108 <span class="keyword">private</span>:00109 <span class="keyword">friend</span> <a class="code" href="classCRadiusClientConnection.html">CRadiusClientConnection</a>;00110 00112 00118 <span class="keywordtype">int</span> <a class="code" href="classCRadiusClientStack.html#d0">addConnection</a>(<a class="code" href="classCRadiusClientConnection.html">CRadiusClientConnection</a> * p_connection);00119 00120 00122 00126 <span class="keywordtype">int</span> <a class="code" href="classCRadiusClientStack.html#d1">transmitFailure</a>(<a class="code" href="classCRadiusClientData.html">CRadiusClientData</a> * p_data);00127 00128 00130 <a class="code" href="classCRadiusClientData.html">CRadiusClientData</a> * <a class="code" href="classCRadiusClientStack.html#d2">seizeData</a>(<a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * p_packet, <a class="code" href="classCRadiusClientConnection.html">CRadiusClientConnection</a> * p_connection);00131 00133 <span class="keywordtype">void</span> <a class="code" href="classCRadiusClientStack.html#d3">releaseData</a>(<a class="code" href="classCRadiusClientData.html">CRadiusClientData</a> * p_data);00134 <a name="l00136"></a><a class="code" href="classCRadiusClientStack.html#r1">00136</a> ACE_Unbounded_Queue<CRadiusClientConnection *> <a class="code" href="classCRadiusClientStack.html#r1">m_connections</a>;00137 <a name="l00139"></a><a class="code" href="classCRadiusClientStack.html#r2">00139</a> <a class="code" href="classCRadiusClientConnection.html">CRadiusClientConnection</a> * <a class="code" href="classCRadiusClientStack.html#r2">m_activeConnection</a>;00140 <a name="l00142"></a><a class="code" href="classCRadiusClientStack.html#r3">00142</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classCRadiusClientStack.html#r3">m_nextPacketId</a>;00143 <a name="l00145"></a><a class="code" href="classCRadiusClientStack.html#r4">00145</a> ACE_Allocator * <a class="code" href="classCRadiusClientStack.html#r4">m_allocator</a>;00146 };00147 00148 <span class="preprocessor">#endif // _CRADIUSCLIENTSTACK_H__</span></div></pre><hr size="1"><address style="align: right;"><small>Generated on Sun Oct 30 11:00:57 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 + -