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: serverrec 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>serverrec Class Reference</h1>A class that defines the local server or a remote server.
9 <a href="#_details">More...</a>
11 <code>#include <<a class="el" href="servers_8h-source.html">servers.h</a>></code>
13 Inherits <a class="el" href="classconnection.html">connection</a>.
15 <a href="classserverrec-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="classserverrec.html#a0">serverrec</a> ()</td></tr>
20 <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. </em> <a href="#a0"></a><em><br><br></td></tr>
21 <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#a1">serverrec</a> (char *n, long ver, bool jupe)</td></tr>
23 <tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor which initialises some of the main variables. </em> <a href="#a1"></a><em><br><br></td></tr>
24 <tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#a2">~serverrec</a> ()</td></tr>
26 <tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. </em> <a href="#a2"></a><em><br><br></td></tr>
27 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
28 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o0">name</a> [MAXBUF]</td></tr>
30 <tr><td class="mdescLeft"> </td><td class="mdescRight">server name </em> <a href="#o0"></a><em><br><br></td></tr>
31 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o1">pingtime</a></td></tr>
33 <tr><td class="mdescLeft"> </td><td class="mdescRight">last ping response (ms) </em> <a href="#o1"></a><em><br><br></td></tr>
34 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o2">usercount_i</a></td></tr>
36 <tr><td class="mdescLeft"> </td><td class="mdescRight">invisible users on server </em> <a href="#o2"></a><em><br><br></td></tr>
37 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o3">usercount</a></td></tr>
39 <tr><td class="mdescLeft"> </td><td class="mdescRight">non-invisible users on server </em> <a href="#o3"></a><em><br><br></td></tr>
40 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o4">opercount</a></td></tr>
42 <tr><td class="mdescLeft"> </td><td class="mdescRight">opers on server </em> <a href="#o4"></a><em><br><br></td></tr>
43 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o5">hops_away</a></td></tr>
45 <tr><td class="mdescLeft"> </td><td class="mdescRight">number of hops away (for quick access) </em> <a href="#o5"></a><em><br><br></td></tr>
46 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o6">version</a></td></tr>
48 <tr><td class="mdescLeft"> </td><td class="mdescRight">ircd version </em> <a href="#o6"></a><em><br><br></td></tr>
49 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o7">jupiter</a></td></tr>
51 <tr><td class="mdescLeft"> </td><td class="mdescRight">is a JUPE server (faked to enforce a server ban) </em> <a href="#o7"></a><em><br><br></td></tr>
52 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o8">description</a> [MAXBUF]</td></tr>
54 <tr><td class="mdescLeft"> </td><td class="mdescRight">Description of the server. </em> <a href="#o8"></a><em><br><br></td></tr>
55 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o9">nickserv</a> [NICKMAX]</td></tr>
57 <tr><td class="mdescLeft"> </td><td class="mdescRight">Holds nickserv's name on U:lined (services) servers (this is a kludge for ircservices which ASSUMES things :/). </em> <a href="#o9"></a><em><br><br></td></tr>
58 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classserverrec.html#o10">sync_soon</a></td></tr>
61 <hr><a name="_details"></a><h2>Detailed Description</h2>
62 A class that defines the local server or a remote server.
66 Definition at line <a class="el" href="servers_8h-source.html#l00030">30</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
67 <a name="a0" doxytag="serverrec::serverrec"></a><p>
68 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
71 <table cellpadding="0" cellspacing="0" border="0">
73 <td class="md" nowrap valign="top"> serverrec::serverrec </td>
74 <td class="md" valign="top">( </td>
75 <td class="mdname1" valign="top" nowrap> </td>
76 <td class="md" valign="top"> ) </td>
77 <td class="md" nowrap></td>
84 <table cellspacing=5 cellpadding=0 border=0>
96 Definition at line <a class="el" href="servers_8cpp-source.html#l00024">24</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>.
98 References <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="servers_8h-source.html#l00051">hops_away</a>, <a class="el" href="servers_8h-source.html#l00057">jupiter</a>, <a class="el" href="connection_8h-source.html#l00228">connection::lastping</a>, <a class="el" href="servers_8h-source.html#l00036">name</a>, <a class="el" href="servers_8h-source.html#l00065">nickserv</a>, <a class="el" href="servers_8h-source.html#l00048">opercount</a>, <a class="el" href="servers_8h-source.html#l00039">pingtime</a>, <a class="el" href="connection_8h-source.html#l00232">connection::signon</a>, <a class="el" href="servers_8h-source.html#l00067">sync_soon</a>, <a class="el" href="servers_8h-source.html#l00045">usercount</a>, <a class="el" href="servers_8h-source.html#l00042">usercount_i</a>, and <a class="el" href="servers_8h-source.html#l00054">version</a>.
100 <div class="fragment"><pre>00025 {
101 00026 strlcpy(name,<span class="stringliteral">""</span>,256);
102 00027 <a class="code" href="classserverrec.html#o1">pingtime</a> = 0;
103 00028 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL);
104 00029 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = <a class="code" href="classserverrec.html#o6">version</a> = 0;
105 00030 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1;
106 00031 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL);
107 00032 <a class="code" href="classserverrec.html#o7">jupiter</a> = <span class="keyword">false</span>;
108 00033 <a class="code" href="classconnection.html#o0">fd</a> = 0;
109 00034 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>;
110 00035 strlcpy(nickserv,<span class="stringliteral">""</span>,NICKMAX);
115 <a name="a1" doxytag="serverrec::serverrec"></a><p>
116 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
119 <table cellpadding="0" cellspacing="0" border="0">
121 <td class="md" nowrap valign="top"> serverrec::serverrec </td>
122 <td class="md" valign="top">( </td>
123 <td class="md" nowrap valign="top">char * </td>
124 <td class="mdname" nowrap> <em>n</em>, </td>
129 <td class="md" nowrap>long </td>
130 <td class="mdname" nowrap> <em>ver</em>, </td>
135 <td class="md" nowrap>bool </td>
136 <td class="mdname" nowrap> <em>jupe</em></td>
140 <td class="md">) </td>
141 <td class="md" colspan="2"></td>
148 <table cellspacing=5 cellpadding=0 border=0>
156 Constructor which initialises some of the main variables.
160 Definition at line <a class="el" href="servers_8cpp-source.html#l00043">43</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>.
162 References <a class="el" href="connection_8h-source.html#l00178">connection::fd</a>, <a class="el" href="servers_8h-source.html#l00051">hops_away</a>, <a class="el" href="servers_8h-source.html#l00057">jupiter</a>, <a class="el" href="connection_8h-source.html#l00228">connection::lastping</a>, <a class="el" href="servers_8h-source.html#l00036">name</a>, <a class="el" href="servers_8h-source.html#l00065">nickserv</a>, <a class="el" href="servers_8h-source.html#l00048">opercount</a>, <a class="el" href="connection_8h-source.html#l00232">connection::signon</a>, <a class="el" href="servers_8h-source.html#l00067">sync_soon</a>, <a class="el" href="servers_8h-source.html#l00045">usercount</a>, <a class="el" href="servers_8h-source.html#l00042">usercount_i</a>, and <a class="el" href="servers_8h-source.html#l00054">version</a>.
164 <div class="fragment"><pre>00044 {
165 00045 strlcpy(name,n,256);
166 00046 <a class="code" href="classconnection.html#o12">lastping</a> = time(NULL);
167 00047 <a class="code" href="classserverrec.html#o2">usercount_i</a> = <a class="code" href="classserverrec.html#o3">usercount</a> = <a class="code" href="classserverrec.html#o4">opercount</a> = 0;
168 00048 <a class="code" href="classserverrec.html#o6">version</a> = ver;
169 00049 <a class="code" href="classserverrec.html#o5">hops_away</a> = 1;
170 00050 <a class="code" href="classconnection.html#o13">signon</a> = time(NULL);
171 00051 <a class="code" href="classserverrec.html#o7">jupiter</a> = jupe;
172 00052 <a class="code" href="classconnection.html#o0">fd</a> = 0;
173 00053 <a class="code" href="classserverrec.html#o10">sync_soon</a> = <span class="keyword">false</span>;
174 00054 strlcpy(nickserv,<span class="stringliteral">""</span>,NICKMAX);
179 <a name="a2" doxytag="serverrec::~serverrec"></a><p>
180 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
183 <table cellpadding="0" cellspacing="0" border="0">
185 <td class="md" nowrap valign="top"> serverrec::~<a class="el" href="classserverrec.html">serverrec</a> </td>
186 <td class="md" valign="top">( </td>
187 <td class="mdname1" valign="top" nowrap> </td>
188 <td class="md" valign="top"> ) </td>
189 <td class="md" nowrap></td>
196 <table cellspacing=5 cellpadding=0 border=0>
208 Definition at line <a class="el" href="servers_8cpp-source.html#l00039">39</a> of file <a class="el" href="servers_8cpp-source.html">servers.cpp</a>.
210 <div class="fragment"><pre>00040 {
215 <hr><h2>Member Data Documentation</h2>
216 <a name="o8" doxytag="serverrec::description"></a><p>
217 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
220 <table cellpadding="0" cellspacing="0" border="0">
222 <td class="md" nowrap valign="top"> char <a class="el" href="classserverrec.html#o8">serverrec::description</a>[MAXBUF]
227 <table cellspacing=5 cellpadding=0 border=0>
235 Description of the server.
239 Definition at line <a class="el" href="servers_8h-source.html#l00061">61</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>. </td>
242 <a name="o5" doxytag="serverrec::hops_away"></a><p>
243 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
246 <table cellpadding="0" cellspacing="0" border="0">
248 <td class="md" nowrap valign="top"> int <a class="el" href="classserverrec.html#o5">serverrec::hops_away</a>
253 <table cellspacing=5 cellpadding=0 border=0>
261 number of hops away (for quick access)
265 Definition at line <a class="el" href="servers_8h-source.html#l00051">51</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
267 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
270 <a name="o7" doxytag="serverrec::jupiter"></a><p>
271 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
274 <table cellpadding="0" cellspacing="0" border="0">
276 <td class="md" nowrap valign="top"> bool <a class="el" href="classserverrec.html#o7">serverrec::jupiter</a>
281 <table cellspacing=5 cellpadding=0 border=0>
289 is a JUPE server (faked to enforce a server ban)
293 Definition at line <a class="el" href="servers_8h-source.html#l00057">57</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
295 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
298 <a name="o0" doxytag="serverrec::name"></a><p>
299 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
302 <table cellpadding="0" cellspacing="0" border="0">
304 <td class="md" nowrap valign="top"> char <a class="el" href="classserverrec.html#o0">serverrec::name</a>[MAXBUF]
309 <table cellspacing=5 cellpadding=0 border=0>
321 Definition at line <a class="el" href="servers_8h-source.html#l00036">36</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
323 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
326 <a name="o9" doxytag="serverrec::nickserv"></a><p>
327 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
330 <table cellpadding="0" cellspacing="0" border="0">
332 <td class="md" nowrap valign="top"> char <a class="el" href="classserverrec.html#o9">serverrec::nickserv</a>[NICKMAX]
337 <table cellspacing=5 cellpadding=0 border=0>
345 Holds nickserv's name on U:lined (services) servers (this is a kludge for ircservices which ASSUMES things :/).
349 Definition at line <a class="el" href="servers_8h-source.html#l00065">65</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
351 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
354 <a name="o4" doxytag="serverrec::opercount"></a><p>
355 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
358 <table cellpadding="0" cellspacing="0" border="0">
360 <td class="md" nowrap valign="top"> long <a class="el" href="classserverrec.html#o4">serverrec::opercount</a>
365 <table cellspacing=5 cellpadding=0 border=0>
377 Definition at line <a class="el" href="servers_8h-source.html#l00048">48</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
379 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
382 <a name="o1" doxytag="serverrec::pingtime"></a><p>
383 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
386 <table cellpadding="0" cellspacing="0" border="0">
388 <td class="md" nowrap valign="top"> long <a class="el" href="classserverrec.html#o1">serverrec::pingtime</a>
393 <table cellspacing=5 cellpadding=0 border=0>
401 last ping response (ms)
405 Definition at line <a class="el" href="servers_8h-source.html#l00039">39</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
407 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
410 <a name="o10" doxytag="serverrec::sync_soon"></a><p>
411 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
414 <table cellpadding="0" cellspacing="0" border="0">
416 <td class="md" nowrap valign="top"> bool <a class="el" href="classserverrec.html#o10">serverrec::sync_soon</a>
421 <table cellspacing=5 cellpadding=0 border=0>
431 Definition at line <a class="el" href="servers_8h-source.html#l00067">67</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
433 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
436 <a name="o3" doxytag="serverrec::usercount"></a><p>
437 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
440 <table cellpadding="0" cellspacing="0" border="0">
442 <td class="md" nowrap valign="top"> long <a class="el" href="classserverrec.html#o3">serverrec::usercount</a>
447 <table cellspacing=5 cellpadding=0 border=0>
455 non-invisible users on server
459 Definition at line <a class="el" href="servers_8h-source.html#l00045">45</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
461 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
464 <a name="o2" doxytag="serverrec::usercount_i"></a><p>
465 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
468 <table cellpadding="0" cellspacing="0" border="0">
470 <td class="md" nowrap valign="top"> long <a class="el" href="classserverrec.html#o2">serverrec::usercount_i</a>
475 <table cellspacing=5 cellpadding=0 border=0>
483 invisible users on server
487 Definition at line <a class="el" href="servers_8h-source.html#l00042">42</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
489 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
492 <a name="o6" doxytag="serverrec::version"></a><p>
493 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
496 <table cellpadding="0" cellspacing="0" border="0">
498 <td class="md" nowrap valign="top"> long <a class="el" href="classserverrec.html#o6">serverrec::version</a>
503 <table cellspacing=5 cellpadding=0 border=0>
515 Definition at line <a class="el" href="servers_8h-source.html#l00054">54</a> of file <a class="el" href="servers_8h-source.html">servers.h</a>.
517 Referenced by <a class="el" href="servers_8cpp-source.html#l00024">serverrec()</a>. </td>
520 <hr>The documentation for this class was generated from the following files:<ul>
521 <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>
522 <hr size="1"><address style="align: right;"><small>Generated on Mon Apr 4 18:12:54 2005 for InspIRCd by
523 <a href="http://www.doxygen.org/index.html">
524 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
525 </a>1.3.3 </small></address>