1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3 <title>InspIRCd: ConnectClass class Reference</title>
4 <link href="inspircd.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3.3 -->
7 <div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Compound List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div>
8 <h1>ConnectClass Class Reference</h1>Holds information relevent to <connect allow> and <connect deny> tags in the config file.
9 <a href="#_details">More...</a>
11 <code>#include <<a class="el" href="users_8h-source.html">users.h</a>></code>
13 Inherits <a class="el" href="classclassbase.html">classbase</a>.
15 <a href="classConnectClass-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
17 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
18 <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#a0">ConnectClass</a> ()</td></tr>
20 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
21 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o0">type</a></td></tr>
23 <tr><td class="mdescLeft"> </td><td class="mdescRight">Type of line, either CC_ALLOW or CC_DENY. </em> <a href="#o0"></a><em><br><br></td></tr>
24 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o1">registration_timeout</a></td></tr>
26 <tr><td class="mdescLeft"> </td><td class="mdescRight">Max time to register the connection in seconds. </em> <a href="#o1"></a><em><br><br></td></tr>
27 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o2">flood</a></td></tr>
29 <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of lines in buffer before excess flood is triggered. </em> <a href="#o2"></a><em><br><br></td></tr>
30 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o3">host</a> [MAXBUF]</td></tr>
32 <tr><td class="mdescLeft"> </td><td class="mdescRight">Host mask for this line. </em> <a href="#o3"></a><em><br><br></td></tr>
33 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o4">pingtime</a></td></tr>
35 <tr><td class="mdescLeft"> </td><td class="mdescRight">Number of seconds between pings for this line. </em> <a href="#o4"></a><em><br><br></td></tr>
36 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o5">pass</a> [MAXBUF]</td></tr>
38 <tr><td class="mdescLeft"> </td><td class="mdescRight">(Optional) Password for this line </em> <a href="#o5"></a><em><br><br></td></tr>
39 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o6">threshold</a></td></tr>
41 <tr><td class="mdescLeft"> </td><td class="mdescRight">Threshold value for flood disconnect. </em> <a href="#o6"></a><em><br><br></td></tr>
42 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o7">sendqmax</a></td></tr>
44 <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum size of sendq for users in this class (bytes). </em> <a href="#o7"></a><em><br><br></td></tr>
45 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classConnectClass.html#o8">recvqmax</a></td></tr>
47 <tr><td class="mdescLeft"> </td><td class="mdescRight">Maximum size of recvq for users in this class (bytes). </em> <a href="#o8"></a><em><br><br></td></tr>
49 <hr><a name="_details"></a><h2>Detailed Description</h2>
50 Holds information relevent to <connect allow> and <connect deny> tags in the config file.
54 Definition at line <a class="el" href="users_8h-source.html#l00045">45</a> of file <a class="el" href="users_8h-source.html">users.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
55 <a name="a0" doxytag="ConnectClass::ConnectClass"></a><p>
56 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
59 <table cellpadding="0" cellspacing="0" border="0">
61 <td class="md" nowrap valign="top"> ConnectClass::ConnectClass </td>
62 <td class="md" valign="top">( </td>
63 <td class="mdname1" valign="top" nowrap> </td>
64 <td class="md" valign="top"> ) </td>
65 <td class="md" nowrap><code> [inline]</code></td>
72 <table cellspacing=5 cellpadding=0 border=0>
82 Definition at line <a class="el" href="users_8h-source.html#l00079">79</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
84 References <a class="el" href="users_8h-source.html#l00056">flood</a>, <a class="el" href="users_8h-source.html#l00059">host</a>, <a class="el" href="users_8h-source.html#l00065">pass</a>, <a class="el" href="users_8h-source.html#l00062">pingtime</a>, <a class="el" href="users_8h-source.html#l00077">recvqmax</a>, <a class="el" href="users_8h-source.html#l00053">registration_timeout</a>, <a class="el" href="users_8h-source.html#l00073">sendqmax</a>, and <a class="el" href="users_8h-source.html#l00069">threshold</a>.
86 <div class="fragment"><pre>00080 {
87 00081 <a class="code" href="classConnectClass.html#o1">registration_timeout</a> = 0;
88 00082 <a class="code" href="classConnectClass.html#o2">flood</a> = 0;
89 00083 <a class="code" href="classConnectClass.html#o4">pingtime</a> = 0;
90 00084 <a class="code" href="classConnectClass.html#o6">threshold</a> = 0;
91 00085 <a class="code" href="classConnectClass.html#o7">sendqmax</a> = 0;
92 00086 <a class="code" href="classConnectClass.html#o8">recvqmax</a> = 0;
93 00087 strlcpy(host,<span class="stringliteral">""</span>,MAXBUF);
94 00088 strlcpy(pass,<span class="stringliteral">""</span>,MAXBUF);
99 <hr><h2>Member Data Documentation</h2>
100 <a name="o2" doxytag="ConnectClass::flood"></a><p>
101 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
104 <table cellpadding="0" cellspacing="0" border="0">
106 <td class="md" nowrap valign="top"> int <a class="el" href="classConnectClass.html#o2">ConnectClass::flood</a>
111 <table cellspacing=5 cellpadding=0 border=0>
119 Number of lines in buffer before excess flood is triggered.
123 Definition at line <a class="el" href="users_8h-source.html#l00056">56</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
125 Referenced by <a class="el" href="users_8h-source.html#l00079">ConnectClass()</a>. </td>
128 <a name="o3" doxytag="ConnectClass::host"></a><p>
129 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
132 <table cellpadding="0" cellspacing="0" border="0">
134 <td class="md" nowrap valign="top"> char <a class="el" href="classConnectClass.html#o3">ConnectClass::host</a>[MAXBUF]
139 <table cellspacing=5 cellpadding=0 border=0>
147 Host mask for this line.
151 Definition at line <a class="el" href="users_8h-source.html#l00059">59</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
153 Referenced by <a class="el" href="users_8h-source.html#l00079">ConnectClass()</a>. </td>
156 <a name="o5" doxytag="ConnectClass::pass"></a><p>
157 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
160 <table cellpadding="0" cellspacing="0" border="0">
162 <td class="md" nowrap valign="top"> char <a class="el" href="classConnectClass.html#o5">ConnectClass::pass</a>[MAXBUF]
167 <table cellspacing=5 cellpadding=0 border=0>
175 (Optional) Password for this line
179 Definition at line <a class="el" href="users_8h-source.html#l00065">65</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
181 Referenced by <a class="el" href="users_8h-source.html#l00079">ConnectClass()</a>. </td>
184 <a name="o4" doxytag="ConnectClass::pingtime"></a><p>
185 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
188 <table cellpadding="0" cellspacing="0" border="0">
190 <td class="md" nowrap valign="top"> int <a class="el" href="classConnectClass.html#o4">ConnectClass::pingtime</a>
195 <table cellspacing=5 cellpadding=0 border=0>
203 Number of seconds between pings for this line.
207 Definition at line <a class="el" href="users_8h-source.html#l00062">62</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
209 Referenced by <a class="el" href="users_8h-source.html#l00079">ConnectClass()</a>. </td>
212 <a name="o8" doxytag="ConnectClass::recvqmax"></a><p>
213 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
216 <table cellpadding="0" cellspacing="0" border="0">
218 <td class="md" nowrap valign="top"> long <a class="el" href="classConnectClass.html#o8">ConnectClass::recvqmax</a>
223 <table cellspacing=5 cellpadding=0 border=0>
231 Maximum size of recvq for users in this class (bytes).
235 Definition at line <a class="el" href="users_8h-source.html#l00077">77</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
237 Referenced by <a class="el" href="users_8h-source.html#l00079">ConnectClass()</a>. </td>
240 <a name="o1" doxytag="ConnectClass::registration_timeout"></a><p>
241 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
244 <table cellpadding="0" cellspacing="0" border="0">
246 <td class="md" nowrap valign="top"> int <a class="el" href="classConnectClass.html#o1">ConnectClass::registration_timeout</a>
251 <table cellspacing=5 cellpadding=0 border=0>
259 Max time to register the connection in seconds.
263 Definition at line <a class="el" href="users_8h-source.html#l00053">53</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
265 Referenced by <a class="el" href="users_8h-source.html#l00079">ConnectClass()</a>. </td>
268 <a name="o7" doxytag="ConnectClass::sendqmax"></a><p>
269 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
272 <table cellpadding="0" cellspacing="0" border="0">
274 <td class="md" nowrap valign="top"> long <a class="el" href="classConnectClass.html#o7">ConnectClass::sendqmax</a>
279 <table cellspacing=5 cellpadding=0 border=0>
287 Maximum size of sendq for users in this class (bytes).
291 Definition at line <a class="el" href="users_8h-source.html#l00073">73</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
293 Referenced by <a class="el" href="users_8h-source.html#l00079">ConnectClass()</a>. </td>
296 <a name="o6" doxytag="ConnectClass::threshold"></a><p>
297 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
300 <table cellpadding="0" cellspacing="0" border="0">
302 <td class="md" nowrap valign="top"> long <a class="el" href="classConnectClass.html#o6">ConnectClass::threshold</a>
307 <table cellspacing=5 cellpadding=0 border=0>
315 Threshold value for flood disconnect.
319 Definition at line <a class="el" href="users_8h-source.html#l00069">69</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
321 Referenced by <a class="el" href="users_8h-source.html#l00079">ConnectClass()</a>. </td>
324 <a name="o0" doxytag="ConnectClass::type"></a><p>
325 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
328 <table cellpadding="0" cellspacing="0" border="0">
330 <td class="md" nowrap valign="top"> int <a class="el" href="classConnectClass.html#o0">ConnectClass::type</a>
335 <table cellspacing=5 cellpadding=0 border=0>
343 Type of line, either CC_ALLOW or CC_DENY.
347 Definition at line <a class="el" href="users_8h-source.html#l00050">50</a> of file <a class="el" href="users_8h-source.html">users.h</a>. </td>
350 <hr>The documentation for this class was generated from the following file:<ul>
351 <li><a class="el" href="users_8h-source.html">users.h</a></ul>
352 <hr size="1"><address style="align: right;"><small>Generated on Thu May 12 02:25:19 2005 for InspIRCd by
353 <a href="http://www.doxygen.org/index.html">
354 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
355 </a>1.3.3 </small></address>