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,312,267,334" 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>
49 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classserverrec.html#m8">description</a> [MAXBUF]</td></tr>
50 <tr><td> </td><td><font size=-1><em>Description of the server.</em> <a href="#m8"></a><em></em></font><br><br></td></tr>
51 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classserverrec.html#m9">sync_soon</a></td></tr>
53 <hr><a name="_details"></a><h2>Detailed Description</h2>
54 A class that defines the local server or a remote server.
58 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>
59 <a name="a0" doxytag="serverrec::serverrec"></a><p>
60 <table width="100%" cellpadding="2" cellspacing="0" border="0">
63 <table cellpadding="0" cellspacing="0" border="0">
65 <td class="md" nowrap valign="top"> serverrec::serverrec </td>
66 <td class="md" valign="top">( </td>
67 <td class="mdname1" valign="top" nowrap> </td>
68 <td class="md" valign="top">) </td>
69 <td class="md" nowrap></td>
76 <table cellspacing=5 cellpadding=0 border=0>
88 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>.
90 References <a class="el" href="connection_8h-source.html#l00165">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#l00215">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#l00219">connection::signon</a>, <a class="el" href="servers_8h-source.html#l00052">sync_soon</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>.
92 <div class="fragment"><pre>00013 {
93 00014 strcpy(name,<span class="stringliteral">""</span>);
94 00015 <a class="code" href="classserverrec.html#m1">pingtime</a> = 0;
95 00016 <a class="code" href="classconnection.html#m12">lastping</a> = time(NULL);
96 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;
97 00018 <a class="code" href="classserverrec.html#m5">hops_away</a> = 1;
98 00019 <a class="code" href="classconnection.html#m13">signon</a> = time(NULL);
99 00020 <a class="code" href="classserverrec.html#m7">jupiter</a> = <span class="keyword">false</span>;
100 00021 <a class="code" href="classconnection.html#m0">fd</a> = 0;
101 00022 <a class="code" href="classserverrec.html#m9">sync_soon</a> = <span class="keyword">false</span>;
106 <a name="a1" doxytag="serverrec::serverrec"></a><p>
107 <table width="100%" cellpadding="2" cellspacing="0" border="0">
110 <table cellpadding="0" cellspacing="0" border="0">
112 <td class="md" nowrap valign="top"> serverrec::serverrec </td>
113 <td class="md" valign="top">( </td>
114 <td class="md" nowrap valign="top">char * </td>
115 <td class="mdname" nowrap> <em>n</em>, </td>
120 <td class="md" nowrap>long </td>
121 <td class="mdname" nowrap> <em>ver</em>, </td>
126 <td class="md" nowrap>bool </td>
127 <td class="mdname" nowrap> <em>jupe</em></td>
131 <td class="md">) </td>
132 <td class="md" colspan="2"></td>
139 <table cellspacing=5 cellpadding=0 border=0>
147 Constructor which initialises some of the main variables.
151 Definition at line <a class="el" href="servers_8cpp-source.html#l00030">30</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>.
153 References <a class="el" href="connection_8h-source.html#l00165">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#l00215">connection::lastping</a>, <a class="el" href="servers_8h-source.html#l00037">opercount</a>, <a class="el" href="connection_8h-source.html#l00219">connection::signon</a>, <a class="el" href="servers_8h-source.html#l00052">sync_soon</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>.
155 <div class="fragment"><pre>00031 {
156 00032 strcpy(name,n);
157 00033 <a class="code" href="classconnection.html#m12">lastping</a> = time(NULL);
158 00034 <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;
159 00035 <a class="code" href="classserverrec.html#m6">version</a> = ver;
160 00036 <a class="code" href="classserverrec.html#m5">hops_away</a> = 1;
161 00037 <a class="code" href="classconnection.html#m13">signon</a> = time(NULL);
162 00038 <a class="code" href="classserverrec.html#m7">jupiter</a> = jupe;
163 00039 <a class="code" href="classconnection.html#m0">fd</a> = 0;
164 00040 <a class="code" href="classserverrec.html#m9">sync_soon</a> = <span class="keyword">false</span>;
169 <a name="a2" doxytag="serverrec::~serverrec"></a><p>
170 <table width="100%" cellpadding="2" cellspacing="0" border="0">
173 <table cellpadding="0" cellspacing="0" border="0">
175 <td class="md" nowrap valign="top"> serverrec::~serverrec </td>
176 <td class="md" valign="top">( </td>
177 <td class="mdname1" valign="top" nowrap> </td>
178 <td class="md" valign="top">) </td>
179 <td class="md" nowrap></td>
186 <table cellspacing=5 cellpadding=0 border=0>
198 Definition at line <a class="el" href="servers_8cpp-source.html#l00026">26</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>.
200 <div class="fragment"><pre>00027 {
205 <hr><h2>Member Data Documentation</h2>
206 <a name="m8" doxytag="serverrec::description"></a><p>
207 <table width="100%" cellpadding="2" cellspacing="0" border="0">
210 <table cellpadding="0" cellspacing="0" border="0">
212 <td class="md" nowrap valign="top"> char serverrec::description[MAXBUF]
217 <table cellspacing=5 cellpadding=0 border=0>
225 Description of the server.
229 Definition at line <a class="el" href="servers_8h-source.html#l00050">50</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. </td>
232 <a name="m5" doxytag="serverrec::hops_away"></a><p>
233 <table width="100%" cellpadding="2" cellspacing="0" border="0">
236 <table cellpadding="0" cellspacing="0" border="0">
238 <td class="md" nowrap valign="top"> int serverrec::hops_away
243 <table cellspacing=5 cellpadding=0 border=0>
251 number of hops away (for quick access)
255 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>.
257 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
260 <a name="m7" doxytag="serverrec::jupiter"></a><p>
261 <table width="100%" cellpadding="2" cellspacing="0" border="0">
264 <table cellpadding="0" cellspacing="0" border="0">
266 <td class="md" nowrap valign="top"> bool serverrec::jupiter
271 <table cellspacing=5 cellpadding=0 border=0>
279 is a JUPE server (faked to enforce a server ban)
283 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>.
285 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
288 <a name="m0" doxytag="serverrec::name"></a><p>
289 <table width="100%" cellpadding="2" cellspacing="0" border="0">
292 <table cellpadding="0" cellspacing="0" border="0">
294 <td class="md" nowrap valign="top"> char serverrec::name[MAXBUF]
299 <table cellspacing=5 cellpadding=0 border=0>
311 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>
314 <a name="m4" doxytag="serverrec::opercount"></a><p>
315 <table width="100%" cellpadding="2" cellspacing="0" border="0">
318 <table cellpadding="0" cellspacing="0" border="0">
320 <td class="md" nowrap valign="top"> long serverrec::opercount
325 <table cellspacing=5 cellpadding=0 border=0>
337 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>.
339 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
342 <a name="m1" doxytag="serverrec::pingtime"></a><p>
343 <table width="100%" cellpadding="2" cellspacing="0" border="0">
346 <table cellpadding="0" cellspacing="0" border="0">
348 <td class="md" nowrap valign="top"> long serverrec::pingtime
353 <table cellspacing=5 cellpadding=0 border=0>
361 last ping response (ms)
365 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>.
367 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
370 <a name="m9" doxytag="serverrec::sync_soon"></a><p>
371 <table width="100%" cellpadding="2" cellspacing="0" border="0">
374 <table cellpadding="0" cellspacing="0" border="0">
376 <td class="md" nowrap valign="top"> bool serverrec::sync_soon
381 <table cellspacing=5 cellpadding=0 border=0>
391 Definition at line <a class="el" href="servers_8h-source.html#l00052">52</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
393 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
396 <a name="m3" doxytag="serverrec::usercount"></a><p>
397 <table width="100%" cellpadding="2" cellspacing="0" border="0">
400 <table cellpadding="0" cellspacing="0" border="0">
402 <td class="md" nowrap valign="top"> long serverrec::usercount
407 <table cellspacing=5 cellpadding=0 border=0>
415 non-invisible users on server
419 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>.
421 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
424 <a name="m2" doxytag="serverrec::usercount_i"></a><p>
425 <table width="100%" cellpadding="2" cellspacing="0" border="0">
428 <table cellpadding="0" cellspacing="0" border="0">
430 <td class="md" nowrap valign="top"> long serverrec::usercount_i
435 <table cellspacing=5 cellpadding=0 border=0>
443 invisible users on server
447 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>.
449 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
452 <a name="m6" doxytag="serverrec::version"></a><p>
453 <table width="100%" cellpadding="2" cellspacing="0" border="0">
456 <table cellpadding="0" cellspacing="0" border="0">
458 <td class="md" nowrap valign="top"> long serverrec::version
463 <table cellspacing=5 cellpadding=0 border=0>
475 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>.
477 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec()</a>. </td>
480 <hr>The documentation for this class was generated from the following files:<ul>
481 <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>
482 <hr><address style="align: right;"><small>Generated on Mon Apr 19 02:34:50 2004 for InspIRCd by
483 <a href="http://www.doxygen.org/index.html">
484 <img src="doxygen.png" alt="doxygen" align="middle" border=0
485 width=110 height=53></a>1.3-rc3 </small></address>