📄 cradiusserverstack_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/CRadiusServerStack.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/CRadiusServerStack.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 _CRADIUSSERVERSTACK_H__</span>00009 <span class="preprocessor"></span><span class="preprocessor">#define _CRADIUSSERVERSTACK_H__</span>00010 <span class="preprocessor"></span>00011 <span class="preprocessor">#include "Global.h"</span>00012 <span class="preprocessor">#include "ace/SOCK_Dgram.h"</span>00013 <span class="preprocessor">#include "ace/Task.h"</span>00014 <span class="preprocessor">#include "ace/INET_Addr.h"</span>00015 00016 <span class="preprocessor">#include "CTask.h"</span>00017 <span class="preprocessor">#include "CRadius.h"</span>00018 <span class="preprocessor">#include "CRadiusPacket.h"</span>00019 00020 00021 <span class="keyword">class </span><a class="code" href="classCRadiusSecret.html">CRadiusSecret</a>;00022 00023 <a name="l00041"></a><a class="code" href="classCRadiusServerStack.html">00041</a> <span class="keyword">class </span><a class="code" href="classCRadiusServerStack.html">CRadiusServerStack</a> : <span class="keyword">public</span> ACE_Task<ACE_MT_SYNCH>00042 {00043 <span class="keyword">public</span>:00045 00062 <a class="code" href="classCRadiusServerStack.html#a0">CRadiusServerStack</a>(<a class="code" href="classCRadiusSecret.html">CRadiusSecret</a> * p_secret = NULL,00063 ACE_UINT16 p_port = D_RADIUS_AUTHENTICATION_PORT, 00064 <span class="keyword">const</span> <span class="keywordtype">char</span> * p_hostname = NULL);00065 00066 00068 00071 <span class="keywordtype">int</span> <a class="code" href="classCRadiusServerStack.html#a1">start</a>(<span class="keywordtype">void</span>);00072 00073 00075 00087 <span class="keywordtype">int</span> <a class="code" href="classCRadiusServerStack.html#a2">sendPacket</a>(<a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * p_packet, <span class="keyword">const</span> ACE_INET_Addr & p_clientAddress, <span class="keywordtype">int</span> p_calculateAuthenticator = D_TRUE);00088 00089 00091 00104 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="classCRadiusServerStack.html#a3">handleRequest</a>(<a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> * p_packet, <span class="keyword">const</span> ACE_INET_Addr & p_clientAddress);00105 00106 00107 <span class="comment">// Service loop</span>00108 <span class="keywordtype">int</span> svc(<span class="keywordtype">void</span>);00109 00110 00112 <span class="keywordtype">void</span> <a class="code" href="classCRadiusServerStack.html#a5">abort</a>(<span class="keywordtype">void</span>);00113 00114 00116 00119 <a class="code" href="classCRadiusSecret.html">CRadiusSecret</a> * <a class="code" href="classCRadiusServerStack.html#a6">getSecret</a>(<span class="keywordtype">void</span>);00120 00122 00125 <span class="keywordtype">void</span> <a class="code" href="classCRadiusServerStack.html#a7">setSecret</a>(<a class="code" href="classCRadiusSecret.html">CRadiusSecret</a> * p_secret);00126 00127 00128 <span class="keyword">private</span>:<a name="l00130"></a><a class="code" href="classCRadiusServerStack.html#r0">00130</a> <a class="code" href="classCRadiusPacket.html">CRadiusPacket</a> <a class="code" href="classCRadiusServerStack.html#r0">m_packet</a>;00131 <a name="l00133"></a><a class="code" href="classCRadiusServerStack.html#r1">00133</a> ACE_INET_Addr <a class="code" href="classCRadiusServerStack.html#r1">m_serverAddress</a>;00134 <a name="l00136"></a><a class="code" href="classCRadiusServerStack.html#r2">00136</a> ACE_INET_Addr <a class="code" href="classCRadiusServerStack.html#r2">m_clientAddress</a>;00137 <a name="l00139"></a><a class="code" href="classCRadiusServerStack.html#r3">00139</a> ACE_SOCK_Dgram <a class="code" href="classCRadiusServerStack.html#r3">m_socket</a>; 00140 <a name="l00142"></a><a class="code" href="classCRadiusServerStack.html#r4">00142</a> <span class="keywordtype">int</span> <a class="code" href="classCRadiusServerStack.html#r4">m_AbortTask</a>;00143 <a name="l00145"></a><a class="code" href="classCRadiusServerStack.html#r5">00145</a> <a class="code" href="classCRadiusSecret.html">CRadiusSecret</a> * <a class="code" href="classCRadiusServerStack.html#r5">m_secret</a>;00146 00147 };00148 <span class="preprocessor">#endif // _CRADIUSSERVERSTACK_H__</span>00149 <span class="preprocessor"></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 + -