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>
43 <hr><a name="_details"></a><h2>Detailed Description</h2>
44 Holds information relevent to <connect allow> and <connect deny> tags in the config file.
48 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>
49 <a name="a0" doxytag="ConnectClass::ConnectClass"></a><p>
50 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
53 <table cellpadding="0" cellspacing="0" border="0">
55 <td class="md" nowrap valign="top"> ConnectClass::ConnectClass </td>
56 <td class="md" valign="top">( </td>
57 <td class="mdname1" valign="top" nowrap> </td>
58 <td class="md" valign="top"> ) </td>
59 <td class="md" nowrap><code> [inline]</code></td>
66 <table cellspacing=5 cellpadding=0 border=0>
76 Definition at line <a class="el" href="users_8h-source.html#l00071">71</a> of file <a class="el" href="users_8h-source.html">users.h</a>.
78 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#l00053">registration_timeout</a>, and <a class="el" href="users_8h-source.html#l00069">threshold</a>.
80 <div class="fragment"><pre>00072 {
81 00073 <a class="code" href="classConnectClass.html#o1">registration_timeout</a> = 0;
82 00074 <a class="code" href="classConnectClass.html#o2">flood</a> = 0;
83 00075 <a class="code" href="classConnectClass.html#o4">pingtime</a> = 0;
84 00076 <a class="code" href="classConnectClass.html#o6">threshold</a> = 0;
85 00077 strlcpy(host,<span class="stringliteral">""</span>,MAXBUF);
86 00078 strlcpy(pass,<span class="stringliteral">""</span>,MAXBUF);
91 <hr><h2>Member Data Documentation</h2>
92 <a name="o2" doxytag="ConnectClass::flood"></a><p>
93 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
96 <table cellpadding="0" cellspacing="0" border="0">
98 <td class="md" nowrap valign="top"> int <a class="el" href="classConnectClass.html#o2">ConnectClass::flood</a>
103 <table cellspacing=5 cellpadding=0 border=0>
111 Number of lines in buffer before excess flood is triggered.
115 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>.
117 Referenced by <a class="el" href="users_8h-source.html#l00071">ConnectClass()</a>. </td>
120 <a name="o3" doxytag="ConnectClass::host"></a><p>
121 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
124 <table cellpadding="0" cellspacing="0" border="0">
126 <td class="md" nowrap valign="top"> char <a class="el" href="classConnectClass.html#o3">ConnectClass::host</a>[MAXBUF]
131 <table cellspacing=5 cellpadding=0 border=0>
139 Host mask for this line.
143 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>.
145 Referenced by <a class="el" href="users_8h-source.html#l00071">ConnectClass()</a>. </td>
148 <a name="o5" doxytag="ConnectClass::pass"></a><p>
149 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
152 <table cellpadding="0" cellspacing="0" border="0">
154 <td class="md" nowrap valign="top"> char <a class="el" href="classConnectClass.html#o5">ConnectClass::pass</a>[MAXBUF]
159 <table cellspacing=5 cellpadding=0 border=0>
167 (Optional) Password for this line
171 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>.
173 Referenced by <a class="el" href="users_8h-source.html#l00071">ConnectClass()</a>. </td>
176 <a name="o4" doxytag="ConnectClass::pingtime"></a><p>
177 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
180 <table cellpadding="0" cellspacing="0" border="0">
182 <td class="md" nowrap valign="top"> int <a class="el" href="classConnectClass.html#o4">ConnectClass::pingtime</a>
187 <table cellspacing=5 cellpadding=0 border=0>
195 Number of seconds between pings for this line.
199 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>.
201 Referenced by <a class="el" href="users_8h-source.html#l00071">ConnectClass()</a>. </td>
204 <a name="o1" doxytag="ConnectClass::registration_timeout"></a><p>
205 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
208 <table cellpadding="0" cellspacing="0" border="0">
210 <td class="md" nowrap valign="top"> int <a class="el" href="classConnectClass.html#o1">ConnectClass::registration_timeout</a>
215 <table cellspacing=5 cellpadding=0 border=0>
223 Max time to register the connection in seconds.
227 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>.
229 Referenced by <a class="el" href="users_8h-source.html#l00071">ConnectClass()</a>. </td>
232 <a name="o6" doxytag="ConnectClass::threshold"></a><p>
233 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
236 <table cellpadding="0" cellspacing="0" border="0">
238 <td class="md" nowrap valign="top"> long <a class="el" href="classConnectClass.html#o6">ConnectClass::threshold</a>
243 <table cellspacing=5 cellpadding=0 border=0>
251 Threshold value for flood disconnect.
255 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>.
257 Referenced by <a class="el" href="users_8h-source.html#l00071">ConnectClass()</a>. </td>
260 <a name="o0" doxytag="ConnectClass::type"></a><p>
261 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
264 <table cellpadding="0" cellspacing="0" border="0">
266 <td class="md" nowrap valign="top"> int <a class="el" href="classConnectClass.html#o0">ConnectClass::type</a>
271 <table cellspacing=5 cellpadding=0 border=0>
279 Type of line, either CC_ALLOW or CC_DENY.
283 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>
286 <hr>The documentation for this class was generated from the following file:<ul>
287 <li><a class="el" href="users_8h-source.html">users.h</a></ul>
288 <hr size="1"><address style="align: right;"><small>Generated on Sat May 7 15:34:24 2005 for InspIRCd by
289 <a href="http://www.doxygen.org/index.html">
290 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
291 </a>1.3.3 </small></address>