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>serverrec class Reference</title>
4 <link href="inspircd.css" rel="stylesheet" type="text/css">
6 <!-- Generated by Doxygen 1.3-rc3 -->
8 <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> </center>
9 <hr><h1>serverrec Class Reference</h1>A class that defines the local server or a remote server.
10 <a href="#_details">More...</a>
12 <code>#include <<a class="el" href="servers_8h-source.html">servers.h</a>></code>
14 Inheritance diagram for serverrec:<p><center><img src="classserverrec__inherit__graph.gif" border="0" usemap="#serverrec__inherit__map" alt="Inheritance graph"></center>
15 <map name="serverrec__inherit__map">
16 <area href="classconnection.html" shape="rect" coords="7,85,76,106" alt="">
17 <area href="classclassbase.html" shape="rect" coords="8,16,75,37" alt="">
19 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for serverrec:<p><center><img src="classserverrec__coll__graph.gif" border="0" usemap="#serverrec__coll__map" alt="Collaboration graph"></center>
20 <map name="serverrec__coll__map">
21 <area href="classconnection.html" shape="rect" coords="197,304,267,326" alt="">
23 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classserverrec-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
25 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
26 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classserverrec.html#a0">serverrec</a> ()</td></tr>
27 <tr><td> </td><td><font size=-1><em>Constructor.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
28 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classserverrec.html#a1">serverrec</a> (char *n, long ver, bool jupe)</td></tr>
29 <tr><td> </td><td><font size=-1><em>Constructor which initialises some of the main variables.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
30 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classserverrec.html#a2">~serverrec</a> ()</td></tr>
31 <tr><td> </td><td><font size=-1><em>Destructor.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
32 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
33 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classserverrec.html#m0">name</a> [MAXBUF]</td></tr>
34 <tr><td> </td><td><font size=-1><em>server name</em> <a href="#m0"></a><em></em></font><br><br></td></tr>
35 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classserverrec.html#m1">pingtime</a></td></tr>
36 <tr><td> </td><td><font size=-1><em>last ping response (ms)</em> <a href="#m1"></a><em></em></font><br><br></td></tr>
37 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classserverrec.html#m2">usercount_i</a></td></tr>
38 <tr><td> </td><td><font size=-1><em>invisible users on server</em> <a href="#m2"></a><em></em></font><br><br></td></tr>
39 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classserverrec.html#m3">usercount</a></td></tr>
40 <tr><td> </td><td><font size=-1><em>non-invisible users on server</em> <a href="#m3"></a><em></em></font><br><br></td></tr>
41 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classserverrec.html#m4">opercount</a></td></tr>
42 <tr><td> </td><td><font size=-1><em>opers on server</em> <a href="#m4"></a><em></em></font><br><br></td></tr>
43 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classserverrec.html#m5">hops_away</a></td></tr>
44 <tr><td> </td><td><font size=-1><em>number of hops away (for quick access)</em> <a href="#m5"></a><em></em></font><br><br></td></tr>
45 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classserverrec.html#m6">version</a></td></tr>
46 <tr><td> </td><td><font size=-1><em>ircd version</em> <a href="#m6"></a><em></em></font><br><br></td></tr>
47 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classserverrec.html#m7">jupiter</a></td></tr>
48 <tr><td> </td><td><font size=-1><em>is a JUPE server (faked to enforce a server ban)</em> <a href="#m7"></a><em></em></font><br><br></td></tr>
50 <hr><a name="_details"></a><h2>Detailed Description</h2>
51 A class that defines the local server or a remote server.
55 Definition at line <a class="el" href="servers_8h-source.html#l00019">19</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
56 <a name="a0" doxytag="serverrec::serverrec"></a><p>
57 <table width="100%" cellpadding="2" cellspacing="0" border="0">
60 <table cellpadding="0" cellspacing="0" border="0">
62 <td class="md" nowrap valign="top"> serverrec::serverrec </td>
63 <td class="md" valign="top">( </td>
64 <td class="mdname1" valign="top" nowrap> </td>
65 <td class="md" valign="top">) </td>
66 <td class="md" nowrap></td>
73 <table cellspacing=5 cellpadding=0 border=0>
85 Definition at line <a class="el" href="servers_8cpp-source.html#l00012">12</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>.
87 References <a class="el" href="connection_8h-source.html#l00043">connection::fd</a>, <a class="el" href="servers_8h-source.html#l00040">hops_away</a>, <a class="el" href="servers_8h-source.html#l00046">jupiter</a>, <a class="el" href="connection_8h-source.html#l00054">connection::lastping</a>, <a class="el" href="servers_8h-source.html#l00037">opercount</a>, <a class="el" href="servers_8h-source.html#l00028">pingtime</a>, <a class="el" href="connection_8h-source.html#l00055">connection::signon</a>, <a class="el" href="servers_8h-source.html#l00034">usercount</a>, <a class="el" href="servers_8h-source.html#l00031">usercount_i</a>, and <a class="el" href="servers_8h-source.html#l00043">version</a>.
89 <div class="fragment"><pre>00013 {
90 00014 strcpy(name,<span class="stringliteral">""</span>);
91 00015 <a class="code" href="classserverrec.html#m1">pingtime</a> = 0;
92 00016 <a class="code" href="classconnection.html#m12">lastping</a> = time(NULL);
93 00017 <a class="code" href="classserverrec.html#m2">usercount_i</a> = <a class="code" href="classserverrec.html#m3">usercount</a> = <a class="code" href="classserverrec.html#m4">opercount</a> = <a class="code" href="classserverrec.html#m6">version</a> = 0;
94 00018 <a class="code" href="classserverrec.html#m5">hops_away</a> = 1;
95 00019 <a class="code" href="classconnection.html#m13">signon</a> = time(NULL);
96 00020 <a class="code" href="classserverrec.html#m7">jupiter</a> = <span class="keyword">false</span>;
97 00021 <a class="code" href="classconnection.html#m1">fd</a> = 0;
102 <a name="a1" doxytag="serverrec::serverrec"></a><p>
103 <table width="100%" cellpadding="2" cellspacing="0" border="0">
106 <table cellpadding="0" cellspacing="0" border="0">
108 <td class="md" nowrap valign="top"> serverrec::serverrec </td>
109 <td class="md" valign="top">( </td>
110 <td class="md" nowrap valign="top">char * </td>
111 <td class="mdname" nowrap> <em>n</em>, </td>
116 <td class="md" nowrap>long </td>
117 <td class="mdname" nowrap> <em>ver</em>, </td>
122 <td class="md" nowrap>bool </td>
123 <td class="mdname" nowrap> <em>jupe</em></td>
127 <td class="md">) </td>
128 <td class="md" colspan="2"></td>
135 <table cellspacing=5 cellpadding=0 border=0>
143 Constructor which initialises some of the main variables.
147 Definition at line <a class="el" href="servers_8cpp-source.html#l00029">29</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>.
149 References <a class="el" href="connection_8h-source.html#l00043">connection::fd</a>, <a class="el" href="servers_8h-source.html#l00040">hops_away</a>, <a class="el" href="servers_8h-source.html#l00046">jupiter</a>, <a class="el" href="connection_8h-source.html#l00054">connection::lastping</a>, <a class="el" href="servers_8h-source.html#l00037">opercount</a>, <a class="el" href="connection_8h-source.html#l00055">connection::signon</a>, <a class="el" href="servers_8h-source.html#l00034">usercount</a>, <a class="el" href="servers_8h-source.html#l00031">usercount_i</a>, and <a class="el" href="servers_8h-source.html#l00043">version</a>.
151 <div class="fragment"><pre>00030 {
152 00031 strcpy(name,n);
153 00032 <a class="code" href="classconnection.html#m12">lastping</a> = time(NULL);
154 00033 <a class="code" href="classserverrec.html#m2">usercount_i</a> = <a class="code" href="classserverrec.html#m3">usercount</a> = <a class="code" href="classserverrec.html#m4">opercount</a> = 0;
155 00034 <a class="code" href="classserverrec.html#m6">version</a> = ver;
156 00035 <a class="code" href="classserverrec.html#m5">hops_away</a> = 1;
157 00036 <a class="code" href="classconnection.html#m13">signon</a> = time(NULL);
158 00037 <a class="code" href="classserverrec.html#m7">jupiter</a> = jupe;
159 00038 <a class="code" href="classconnection.html#m1">fd</a> = 0;
164 <a name="a2" doxytag="serverrec::~serverrec"></a><p>
165 <table width="100%" cellpadding="2" cellspacing="0" border="0">
168 <table cellpadding="0" cellspacing="0" border="0">
170 <td class="md" nowrap valign="top"> serverrec::~serverrec </td>
171 <td class="md" valign="top">( </td>
172 <td class="mdname1" valign="top" nowrap> </td>
173 <td class="md" valign="top">) </td>
174 <td class="md" nowrap></td>
181 <table cellspacing=5 cellpadding=0 border=0>
193 Definition at line <a class="el" href="servers_8cpp-source.html#l00025">25</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>.
195 <div class="fragment"><pre>00026 {
200 <hr><h2>Member Data Documentation</h2>
201 <a name="m5" doxytag="serverrec::hops_away"></a><p>
202 <table width="100%" cellpadding="2" cellspacing="0" border="0">
205 <table cellpadding="0" cellspacing="0" border="0">
207 <td class="md" nowrap valign="top"> int serverrec::hops_away
212 <table cellspacing=5 cellpadding=0 border=0>
220 number of hops away (for quick access)
224 Definition at line <a class="el" href="servers_8h-source.html#l00040">40</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
226 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
229 <a name="m7" doxytag="serverrec::jupiter"></a><p>
230 <table width="100%" cellpadding="2" cellspacing="0" border="0">
233 <table cellpadding="0" cellspacing="0" border="0">
235 <td class="md" nowrap valign="top"> bool serverrec::jupiter
240 <table cellspacing=5 cellpadding=0 border=0>
248 is a JUPE server (faked to enforce a server ban)
252 Definition at line <a class="el" href="servers_8h-source.html#l00046">46</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
254 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
257 <a name="m0" doxytag="serverrec::name"></a><p>
258 <table width="100%" cellpadding="2" cellspacing="0" border="0">
261 <table cellpadding="0" cellspacing="0" border="0">
263 <td class="md" nowrap valign="top"> char serverrec::name[MAXBUF]
268 <table cellspacing=5 cellpadding=0 border=0>
280 Definition at line <a class="el" href="servers_8h-source.html#l00025">25</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. </td>
283 <a name="m4" doxytag="serverrec::opercount"></a><p>
284 <table width="100%" cellpadding="2" cellspacing="0" border="0">
287 <table cellpadding="0" cellspacing="0" border="0">
289 <td class="md" nowrap valign="top"> long serverrec::opercount
294 <table cellspacing=5 cellpadding=0 border=0>
306 Definition at line <a class="el" href="servers_8h-source.html#l00037">37</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
308 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
311 <a name="m1" doxytag="serverrec::pingtime"></a><p>
312 <table width="100%" cellpadding="2" cellspacing="0" border="0">
315 <table cellpadding="0" cellspacing="0" border="0">
317 <td class="md" nowrap valign="top"> long serverrec::pingtime
322 <table cellspacing=5 cellpadding=0 border=0>
330 last ping response (ms)
334 Definition at line <a class="el" href="servers_8h-source.html#l00028">28</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
336 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
339 <a name="m3" doxytag="serverrec::usercount"></a><p>
340 <table width="100%" cellpadding="2" cellspacing="0" border="0">
343 <table cellpadding="0" cellspacing="0" border="0">
345 <td class="md" nowrap valign="top"> long serverrec::usercount
350 <table cellspacing=5 cellpadding=0 border=0>
358 non-invisible users on server
362 Definition at line <a class="el" href="servers_8h-source.html#l00034">34</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
364 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
367 <a name="m2" doxytag="serverrec::usercount_i"></a><p>
368 <table width="100%" cellpadding="2" cellspacing="0" border="0">
371 <table cellpadding="0" cellspacing="0" border="0">
373 <td class="md" nowrap valign="top"> long serverrec::usercount_i
378 <table cellspacing=5 cellpadding=0 border=0>
386 invisible users on server
390 Definition at line <a class="el" href="servers_8h-source.html#l00031">31</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
392 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
395 <a name="m6" doxytag="serverrec::version"></a><p>
396 <table width="100%" cellpadding="2" cellspacing="0" border="0">
399 <table cellpadding="0" cellspacing="0" border="0">
401 <td class="md" nowrap valign="top"> long serverrec::version
406 <table cellspacing=5 cellpadding=0 border=0>
418 Definition at line <a class="el" href="servers_8h-source.html#l00043">43</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
420 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
423 <hr>The documentation for this class was generated from the following files:<ul>
424 <li><a class="el" href="servers_8h-source.html">servers.h</a><li><a class="el" href="servers_8cpp-source.html">servers.cpp</a></ul>
425 <hr><address style="align: right;"><small>Generated on Tue Apr 6 21:14:16 2004 for InspIRCd by
426 <a href="http://www.doxygen.org/index.html">
427 <img src="doxygen.png" alt="doxygen" align="middle" border=0
428 width=110 height=53></a>1.3-rc3 </small></address>