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>connection 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>connection Class Reference</h1>Please note: classes serverrec and userrec both inherit from class connection.
10 <a href="#_details">More...</a>
12 <code>#include <<a class="el" href="connection_8h-source.html">connection.h</a>></code>
14 Inheritance diagram for connection:<p><center><img src="classconnection__inherit__graph.gif" border="0" usemap="#connection__inherit__map" alt="Inheritance graph"></center>
15 <map name="connection__inherit__map">
16 <area href="classserverrec.html" shape="rect" coords="7,154,73,176" alt="">
17 <area href="classuserrec.html" shape="rect" coords="97,154,153,176" alt="">
18 <area href="classclassbase.html" shape="rect" coords="49,16,116,37" alt="">
20 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center>Collaboration diagram for connection:<p><center><img src="classconnection__coll__graph.gif" border="0" usemap="#connection__coll__map" alt="Collaboration graph"></center>
21 <map name="connection__coll__map">
22 <area href="classclassbase.html" shape="rect" coords="192,122,259,144" alt="">
24 <center><font size="2">[<a target="top" href="graph_legend.html">legend</a>]</font></center><a href="classconnection-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
26 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
27 <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classconnection.html#a0">connection</a> ()</td></tr>
28 <tr><td> </td><td><font size=-1><em>Default constructor.</em> <a href="#a0"></a><em></em></font><br><br></td></tr>
29 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a1">CreateListener</a> (char *<a class="el" href="classconnection.html#m1">host</a>, int p)</td></tr>
30 <tr><td> </td><td><font size=-1><em>Create a listening socket on 'host' using port number 'p'.</em> <a href="#a1"></a><em></em></font><br><br></td></tr>
31 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a2">BeginLink</a> (char *targethost, int <a class="el" href="classconnection.html#m9">port</a>, char *password, char *servername, int myport)</td></tr>
32 <tr><td> </td><td><font size=-1><em>Begin an outbound link to another ircd at targethost.</em> <a href="#a2"></a><em></em></font><br><br></td></tr>
33 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a3">MeshCookie</a> (char *targethost, int <a class="el" href="classconnection.html#m9">port</a>, long cookie, char *servername)</td></tr>
34 <tr><td> </td><td><font size=-1><em>Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.</em> <a href="#a3"></a><em></em></font><br><br></td></tr>
35 <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classconnection.html#a4">TerminateLink</a> (char *targethost)</td></tr>
36 <tr><td> </td><td><font size=-1><em>Terminate a link to 'targethost' by calling the <a class="el" href="classircd__connector.html#a13">ircd_connector::CloseConnection</a> method.</em> <a href="#a4"></a><em></em></font><br><br></td></tr>
37 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a5">SendPacket</a> (char *message, const char *<a class="el" href="classconnection.html#m1">host</a>)</td></tr>
38 <tr><td> </td><td><font size=-1><em>Send a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false.</em> <a href="#a5"></a><em></em></font><br><br></td></tr>
39 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a6">RecvPacket</a> (std::deque< std::string > &messages, char *<a class="el" href="classconnection.html#m1">host</a>)</td></tr>
40 <tr><td> </td><td><font size=-1><em>Returns the next available packet and returns true if data is available.</em> <a href="#a6"></a><em></em></font><br><br></td></tr>
41 <tr><td nowrap align=right valign=top><a class="el" href="classircd__connector.html">ircd_connector</a> * </td><td valign=bottom><a class="el" href="classconnection.html#a7">FindHost</a> (std::string <a class="el" href="classconnection.html#m1">host</a>)</td></tr>
42 <tr><td> </td><td><font size=-1><em>Find the <a class="el" href="classircd__connector.html">ircd_connector</a> oject related to a certain servername given in 'host'.</em> <a href="#a7"></a><em></em></font><br><br></td></tr>
43 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#a8">AddIncoming</a> (int <a class="el" href="classconnection.html#m0">fd</a>, char *targethost, int sourceport)</td></tr>
44 <tr><td> </td><td><font size=-1><em>Add an incoming connection to the connection pool.</em> <a href="#a8"></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="classconnection.html#a9">GenKey</a> ()</td></tr>
46 <tr><td> </td><td><font size=-1><em>This function is deprecated and may be removed in a later alpha/beta.</em> <a href="#a9"></a><em></em></font><br><br></td></tr>
47 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
48 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m0">fd</a></td></tr>
49 <tr><td> </td><td><font size=-1><em>File descriptor of the connection.</em> <a href="#m0"></a><em></em></font><br><br></td></tr>
50 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classconnection.html#m1">host</a> [256]</td></tr>
51 <tr><td> </td><td><font size=-1><em>Hostname of connection.</em> <a href="#m1"></a><em></em></font><br><br></td></tr>
52 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m2">ip</a></td></tr>
53 <tr><td> </td><td><font size=-1><em>IP of connection.</em> <a href="#m2"></a><em></em></font><br><br></td></tr>
54 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classconnection.html#m3">inbuf</a> [MAXBUF]</td></tr>
55 <tr><td> </td><td><font size=-1><em>Inbuf of connection.</em> <a href="#m3"></a><em></em></font><br><br></td></tr>
56 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m4">bytes_in</a></td></tr>
57 <tr><td> </td><td><font size=-1><em>Stats counter for bytes inbound.</em> <a href="#m4"></a><em></em></font><br><br></td></tr>
58 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m5">bytes_out</a></td></tr>
59 <tr><td> </td><td><font size=-1><em>Stats counter for bytes outbound.</em> <a href="#m5"></a><em></em></font><br><br></td></tr>
60 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m6">cmds_in</a></td></tr>
61 <tr><td> </td><td><font size=-1><em>Stats counter for commands inbound.</em> <a href="#m6"></a><em></em></font><br><br></td></tr>
62 <tr><td nowrap align=right valign=top>long </td><td valign=bottom><a class="el" href="classconnection.html#m7">cmds_out</a></td></tr>
63 <tr><td> </td><td><font size=-1><em>Stats counter for commands outbound.</em> <a href="#m7"></a><em></em></font><br><br></td></tr>
64 <tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classconnection.html#m8">haspassed</a></td></tr>
65 <tr><td> </td><td><font size=-1><em>True if server/user has authenticated, false if otherwise.</em> <a href="#m8"></a><em></em></font><br><br></td></tr>
66 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m9">port</a></td></tr>
67 <tr><td> </td><td><font size=-1><em>Port number For a userrec, this is the port they connected to the network on.</em> <a href="#m9"></a><em></em></font><br><br></td></tr>
68 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m10">registered</a></td></tr>
69 <tr><td> </td><td><font size=-1><em>Used by userrec to indicate the registration status of the connection.</em> <a href="#m10"></a><em></em></font><br><br></td></tr>
70 <tr><td nowrap align=right valign=top>short int </td><td valign=bottom><a class="el" href="classconnection.html#m11">state</a></td></tr>
71 <tr><td> </td><td><font size=-1><em>Reserved for future use.</em> <a href="#m11"></a><em></em></font><br><br></td></tr>
72 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m12">lastping</a></td></tr>
73 <tr><td> </td><td><font size=-1><em>Time the connection was last pinged.</em> <a href="#m12"></a><em></em></font><br><br></td></tr>
74 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m13">signon</a></td></tr>
75 <tr><td> </td><td><font size=-1><em>Time the connection was created, set in the constructor.</em> <a href="#m13"></a><em></em></font><br><br></td></tr>
76 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m14">idle_lastmsg</a></td></tr>
77 <tr><td> </td><td><font size=-1><em>Time that the connection last sent data, used to calculate idle time.</em> <a href="#m14"></a><em></em></font><br><br></td></tr>
78 <tr><td nowrap align=right valign=top>time_t </td><td valign=bottom><a class="el" href="classconnection.html#m15">nping</a></td></tr>
79 <tr><td> </td><td><font size=-1><em>Used by PING checks with clients.</em> <a href="#m15"></a><em></em></font><br><br></td></tr>
80 <tr><td nowrap align=right valign=top>char </td><td valign=bottom><a class="el" href="classconnection.html#m16">internal_addr</a> [1024]</td></tr>
81 <tr><td> </td><td><font size=-1><em>Unused, will be removed in a future alpha/beta.</em> <a href="#m16"></a><em></em></font><br><br></td></tr>
82 <tr><td nowrap align=right valign=top>int </td><td valign=bottom><a class="el" href="classconnection.html#m17">internal_port</a></td></tr>
83 <tr><td> </td><td><font size=-1><em>Unused, will be removed in a future alpha/beta.</em> <a href="#m17"></a><em></em></font><br><br></td></tr>
84 <tr><td nowrap align=right valign=top>std::vector< <a class="el" href="classircd__connector.html">ircd_connector</a> > </td><td valign=bottom><a class="el" href="classconnection.html#m18">connectors</a></td></tr>
85 <tr><td> </td><td><font size=-1><em>With a serverrec, this is a list of all established server connections.</em> <a href="#m18"></a><em></em></font><br><br></td></tr>
87 <hr><a name="_details"></a><h2>Detailed Description</h2>
88 Please note: classes serverrec and userrec both inherit from class connection.
92 Definition at line <a class="el" href="connection_8h-source.html#l00160">160</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
93 <a name="a0" doxytag="connection::connection"></a><p>
94 <table width="100%" cellpadding="2" cellspacing="0" border="0">
97 <table cellpadding="0" cellspacing="0" border="0">
99 <td class="md" nowrap valign="top"> connection::connection </td>
100 <td class="md" valign="top">( </td>
101 <td class="mdname1" valign="top" nowrap> </td>
102 <td class="md" valign="top">) </td>
103 <td class="md" nowrap></td>
110 <table cellspacing=5 cellpadding=0 border=0>
123 <hr><h2>Member Function Documentation</h2>
124 <a name="a8" doxytag="connection::AddIncoming"></a><p>
125 <table width="100%" cellpadding="2" cellspacing="0" border="0">
128 <table cellpadding="0" cellspacing="0" border="0">
130 <td class="md" nowrap valign="top"> bool connection::AddIncoming </td>
131 <td class="md" valign="top">( </td>
132 <td class="md" nowrap valign="top">int </td>
133 <td class="mdname" nowrap> <em>fd</em>, </td>
138 <td class="md" nowrap>char * </td>
139 <td class="mdname" nowrap> <em>targethost</em>, </td>
144 <td class="md" nowrap>int </td>
145 <td class="mdname" nowrap> <em>sourceport</em></td>
149 <td class="md">) </td>
150 <td class="md" colspan="2"></td>
157 <table cellspacing=5 cellpadding=0 border=0>
165 Add an incoming connection to the connection pool.
167 (reserved for core use) </td>
170 <a name="a2" doxytag="connection::BeginLink"></a><p>
171 <table width="100%" cellpadding="2" cellspacing="0" border="0">
174 <table cellpadding="0" cellspacing="0" border="0">
176 <td class="md" nowrap valign="top"> bool connection::BeginLink </td>
177 <td class="md" valign="top">( </td>
178 <td class="md" nowrap valign="top">char * </td>
179 <td class="mdname" nowrap> <em>targethost</em>, </td>
184 <td class="md" nowrap>int </td>
185 <td class="mdname" nowrap> <em>port</em>, </td>
190 <td class="md" nowrap>char * </td>
191 <td class="mdname" nowrap> <em>password</em>, </td>
196 <td class="md" nowrap>char * </td>
197 <td class="mdname" nowrap> <em>servername</em>, </td>
202 <td class="md" nowrap>int </td>
203 <td class="mdname" nowrap> <em>myport</em></td>
207 <td class="md">) </td>
208 <td class="md" colspan="2"></td>
215 <table cellspacing=5 cellpadding=0 border=0>
223 Begin an outbound link to another ircd at targethost.
228 <a name="a1" doxytag="connection::CreateListener"></a><p>
229 <table width="100%" cellpadding="2" cellspacing="0" border="0">
232 <table cellpadding="0" cellspacing="0" border="0">
234 <td class="md" nowrap valign="top"> bool connection::CreateListener </td>
235 <td class="md" valign="top">( </td>
236 <td class="md" nowrap valign="top">char * </td>
237 <td class="mdname" nowrap> <em>host</em>, </td>
242 <td class="md" nowrap>int </td>
243 <td class="mdname" nowrap> <em>p</em></td>
247 <td class="md">) </td>
248 <td class="md" colspan="2"></td>
255 <table cellspacing=5 cellpadding=0 border=0>
263 Create a listening socket on 'host' using port number 'p'.
268 <a name="a7" doxytag="connection::FindHost"></a><p>
269 <table width="100%" cellpadding="2" cellspacing="0" border="0">
272 <table cellpadding="0" cellspacing="0" border="0">
274 <td class="md" nowrap valign="top"> <a class="el" href="classircd__connector.html">ircd_connector</a>* connection::FindHost </td>
275 <td class="md" valign="top">( </td>
276 <td class="md" nowrap valign="top">std::string </td>
277 <td class="mdname1" valign="top" nowrap> <em>host</em> </td>
278 <td class="md" valign="top">) </td>
279 <td class="md" nowrap></td>
286 <table cellspacing=5 cellpadding=0 border=0>
294 Find the <a class="el" href="classircd__connector.html">ircd_connector</a> oject related to a certain servername given in 'host'.
299 <a name="a9" doxytag="connection::GenKey"></a><p>
300 <table width="100%" cellpadding="2" cellspacing="0" border="0">
303 <table cellpadding="0" cellspacing="0" border="0">
305 <td class="md" nowrap valign="top"> long connection::GenKey </td>
306 <td class="md" valign="top">( </td>
307 <td class="mdname1" valign="top" nowrap> </td>
308 <td class="md" valign="top">) </td>
309 <td class="md" nowrap></td>
316 <table cellspacing=5 cellpadding=0 border=0>
324 This function is deprecated and may be removed in a later alpha/beta.
329 <a name="a3" doxytag="connection::MeshCookie"></a><p>
330 <table width="100%" cellpadding="2" cellspacing="0" border="0">
333 <table cellpadding="0" cellspacing="0" border="0">
335 <td class="md" nowrap valign="top"> bool connection::MeshCookie </td>
336 <td class="md" valign="top">( </td>
337 <td class="md" nowrap valign="top">char * </td>
338 <td class="mdname" nowrap> <em>targethost</em>, </td>
343 <td class="md" nowrap>int </td>
344 <td class="mdname" nowrap> <em>port</em>, </td>
349 <td class="md" nowrap>long </td>
350 <td class="mdname" nowrap> <em>cookie</em>, </td>
355 <td class="md" nowrap>char * </td>
356 <td class="mdname" nowrap> <em>servername</em></td>
360 <td class="md">) </td>
361 <td class="md" colspan="2"></td>
368 <table cellspacing=5 cellpadding=0 border=0>
376 Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.
381 <a name="a6" doxytag="connection::RecvPacket"></a><p>
382 <table width="100%" cellpadding="2" cellspacing="0" border="0">
385 <table cellpadding="0" cellspacing="0" border="0">
387 <td class="md" nowrap valign="top"> bool connection::RecvPacket </td>
388 <td class="md" valign="top">( </td>
389 <td class="md" nowrap valign="top">std::deque< std::string > & </td>
390 <td class="mdname" nowrap> <em>messages</em>, </td>
395 <td class="md" nowrap>char * </td>
396 <td class="mdname" nowrap> <em>host</em></td>
400 <td class="md">) </td>
401 <td class="md" colspan="2"></td>
408 <table cellspacing=5 cellpadding=0 border=0>
416 Returns the next available packet and returns true if data is available.
418 Writes the servername the data came from to 'host'. If no data is available this function returns false. This function will automatically close broken links and reroute pathways, generating split messages on the network. </td>
421 <a name="a5" doxytag="connection::SendPacket"></a><p>
422 <table width="100%" cellpadding="2" cellspacing="0" border="0">
425 <table cellpadding="0" cellspacing="0" border="0">
427 <td class="md" nowrap valign="top"> bool connection::SendPacket </td>
428 <td class="md" valign="top">( </td>
429 <td class="md" nowrap valign="top">char * </td>
430 <td class="mdname" nowrap> <em>message</em>, </td>
435 <td class="md" nowrap>const char * </td>
436 <td class="mdname" nowrap> <em>host</em></td>
440 <td class="md">) </td>
441 <td class="md" colspan="2"></td>
448 <table cellspacing=5 cellpadding=0 border=0>
456 Send a message to a server by name, if the server is unavailable directly route the packet via another server If the server still cannot be reached after attempting to route the message remotely, returns false.
461 <a name="a4" doxytag="connection::TerminateLink"></a><p>
462 <table width="100%" cellpadding="2" cellspacing="0" border="0">
465 <table cellpadding="0" cellspacing="0" border="0">
467 <td class="md" nowrap valign="top"> void connection::TerminateLink </td>
468 <td class="md" valign="top">( </td>
469 <td class="md" nowrap valign="top">char * </td>
470 <td class="mdname1" valign="top" nowrap> <em>targethost</em> </td>
471 <td class="md" valign="top">) </td>
472 <td class="md" nowrap></td>
479 <table cellspacing=5 cellpadding=0 border=0>
487 Terminate a link to 'targethost' by calling the <a class="el" href="classircd__connector.html#a13">ircd_connector::CloseConnection</a> method.
492 <hr><h2>Member Data Documentation</h2>
493 <a name="m4" doxytag="connection::bytes_in"></a><p>
494 <table width="100%" cellpadding="2" cellspacing="0" border="0">
497 <table cellpadding="0" cellspacing="0" border="0">
499 <td class="md" nowrap valign="top"> long connection::bytes_in
504 <table cellspacing=5 cellpadding=0 border=0>
512 Stats counter for bytes inbound.
516 Definition at line <a class="el" href="connection_8h-source.html#l00181">181</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
518 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
521 <a name="m5" doxytag="connection::bytes_out"></a><p>
522 <table width="100%" cellpadding="2" cellspacing="0" border="0">
525 <table cellpadding="0" cellspacing="0" border="0">
527 <td class="md" nowrap valign="top"> long connection::bytes_out
532 <table cellspacing=5 cellpadding=0 border=0>
540 Stats counter for bytes outbound.
544 Definition at line <a class="el" href="connection_8h-source.html#l00185">185</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
546 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
549 <a name="m6" doxytag="connection::cmds_in"></a><p>
550 <table width="100%" cellpadding="2" cellspacing="0" border="0">
553 <table cellpadding="0" cellspacing="0" border="0">
555 <td class="md" nowrap valign="top"> long connection::cmds_in
560 <table cellspacing=5 cellpadding=0 border=0>
568 Stats counter for commands inbound.
572 Definition at line <a class="el" href="connection_8h-source.html#l00189">189</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
574 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
577 <a name="m7" doxytag="connection::cmds_out"></a><p>
578 <table width="100%" cellpadding="2" cellspacing="0" border="0">
581 <table cellpadding="0" cellspacing="0" border="0">
583 <td class="md" nowrap valign="top"> long connection::cmds_out
588 <table cellspacing=5 cellpadding=0 border=0>
596 Stats counter for commands outbound.
600 Definition at line <a class="el" href="connection_8h-source.html#l00193">193</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
602 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
605 <a name="m18" doxytag="connection::connectors"></a><p>
606 <table width="100%" cellpadding="2" cellspacing="0" border="0">
609 <table cellpadding="0" cellspacing="0" border="0">
611 <td class="md" nowrap valign="top"> std::vector<<a class="el" href="classircd__connector.html">ircd_connector</a>> connection::connectors
616 <table cellspacing=5 cellpadding=0 border=0>
624 With a serverrec, this is a list of all established server connections.
626 With a userrec this is unused.
628 Definition at line <a class="el" href="connection_8h-source.html#l00240">240</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
631 <a name="m0" doxytag="connection::fd"></a><p>
632 <table width="100%" cellpadding="2" cellspacing="0" border="0">
635 <table cellpadding="0" cellspacing="0" border="0">
637 <td class="md" nowrap valign="top"> int connection::fd
642 <table cellspacing=5 cellpadding=0 border=0>
650 File descriptor of the connection.
654 Definition at line <a class="el" href="connection_8h-source.html#l00165">165</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
656 Referenced by <a class="el" href="modules_8cpp-source.html#l00215">Server::SendTo()</a>, <a class="el" href="servers_8cpp-source.html#l00012">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
659 <a name="m8" doxytag="connection::haspassed"></a><p>
660 <table width="100%" cellpadding="2" cellspacing="0" border="0">
663 <table cellpadding="0" cellspacing="0" border="0">
665 <td class="md" nowrap valign="top"> bool connection::haspassed
670 <table cellspacing=5 cellpadding=0 border=0>
678 True if server/user has authenticated, false if otherwise.
682 Definition at line <a class="el" href="connection_8h-source.html#l00197">197</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
684 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
687 <a name="m1" doxytag="connection::host"></a><p>
688 <table width="100%" cellpadding="2" cellspacing="0" border="0">
691 <table cellpadding="0" cellspacing="0" border="0">
693 <td class="md" nowrap valign="top"> char connection::host[256]
698 <table cellspacing=5 cellpadding=0 border=0>
706 Hostname of connection.
708 Not used if this is a serverrec
710 Definition at line <a class="el" href="connection_8h-source.html#l00169">169</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
713 <a name="m14" doxytag="connection::idle_lastmsg"></a><p>
714 <table width="100%" cellpadding="2" cellspacing="0" border="0">
717 <table cellpadding="0" cellspacing="0" border="0">
719 <td class="md" nowrap valign="top"> time_t connection::idle_lastmsg
724 <table cellspacing=5 cellpadding=0 border=0>
732 Time that the connection last sent data, used to calculate idle time.
736 Definition at line <a class="el" href="connection_8h-source.html#l00223">223</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
738 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
741 <a name="m3" doxytag="connection::inbuf"></a><p>
742 <table width="100%" cellpadding="2" cellspacing="0" border="0">
745 <table cellpadding="0" cellspacing="0" border="0">
747 <td class="md" nowrap valign="top"> char connection::inbuf[MAXBUF]
752 <table cellspacing=5 cellpadding=0 border=0>
762 Only used for userrec
764 Definition at line <a class="el" href="connection_8h-source.html#l00177">177</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
767 <a name="m16" doxytag="connection::internal_addr"></a><p>
768 <table width="100%" cellpadding="2" cellspacing="0" border="0">
771 <table cellpadding="0" cellspacing="0" border="0">
773 <td class="md" nowrap valign="top"> char connection::internal_addr[1024]
778 <table cellspacing=5 cellpadding=0 border=0>
786 Unused, will be removed in a future alpha/beta.
790 Definition at line <a class="el" href="connection_8h-source.html#l00231">231</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
793 <a name="m17" doxytag="connection::internal_port"></a><p>
794 <table width="100%" cellpadding="2" cellspacing="0" border="0">
797 <table cellpadding="0" cellspacing="0" border="0">
799 <td class="md" nowrap valign="top"> int connection::internal_port
804 <table cellspacing=5 cellpadding=0 border=0>
812 Unused, will be removed in a future alpha/beta.
816 Definition at line <a class="el" href="connection_8h-source.html#l00235">235</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
819 <a name="m2" doxytag="connection::ip"></a><p>
820 <table width="100%" cellpadding="2" cellspacing="0" border="0">
823 <table cellpadding="0" cellspacing="0" border="0">
825 <td class="md" nowrap valign="top"> long connection::ip
830 <table cellspacing=5 cellpadding=0 border=0>
840 Reserved for future use.
842 Definition at line <a class="el" href="connection_8h-source.html#l00173">173</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
844 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
847 <a name="m12" doxytag="connection::lastping"></a><p>
848 <table width="100%" cellpadding="2" cellspacing="0" border="0">
851 <table cellpadding="0" cellspacing="0" border="0">
853 <td class="md" nowrap valign="top"> time_t connection::lastping
858 <table cellspacing=5 cellpadding=0 border=0>
866 Time the connection was last pinged.
870 Definition at line <a class="el" href="connection_8h-source.html#l00215">215</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
872 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
875 <a name="m15" doxytag="connection::nping"></a><p>
876 <table width="100%" cellpadding="2" cellspacing="0" border="0">
879 <table cellpadding="0" cellspacing="0" border="0">
881 <td class="md" nowrap valign="top"> time_t connection::nping
886 <table cellspacing=5 cellpadding=0 border=0>
894 Used by PING checks with clients.
898 Definition at line <a class="el" href="connection_8h-source.html#l00227">227</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
900 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
903 <a name="m9" doxytag="connection::port"></a><p>
904 <table width="100%" cellpadding="2" cellspacing="0" border="0">
907 <table cellpadding="0" cellspacing="0" border="0">
909 <td class="md" nowrap valign="top"> int connection::port
914 <table cellspacing=5 cellpadding=0 border=0>
922 Port number For a userrec, this is the port they connected to the network on.
924 For a serverrec this is the current listening port of the serverrec object.
926 Definition at line <a class="el" href="connection_8h-source.html#l00203">203</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
928 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
931 <a name="m10" doxytag="connection::registered"></a><p>
932 <table width="100%" cellpadding="2" cellspacing="0" border="0">
935 <table cellpadding="0" cellspacing="0" border="0">
937 <td class="md" nowrap valign="top"> int connection::registered
942 <table cellspacing=5 cellpadding=0 border=0>
950 Used by userrec to indicate the registration status of the connection.
954 Definition at line <a class="el" href="connection_8h-source.html#l00207">207</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
956 Referenced by <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
959 <a name="m13" doxytag="connection::signon"></a><p>
960 <table width="100%" cellpadding="2" cellspacing="0" border="0">
963 <table cellpadding="0" cellspacing="0" border="0">
965 <td class="md" nowrap valign="top"> time_t connection::signon
970 <table cellspacing=5 cellpadding=0 border=0>
978 Time the connection was created, set in the constructor.
982 Definition at line <a class="el" href="connection_8h-source.html#l00219">219</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
984 Referenced by <a class="el" href="servers_8cpp-source.html#l00012">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00011">userrec::userrec()</a>. </td>
987 <a name="m11" doxytag="connection::state"></a><p>
988 <table width="100%" cellpadding="2" cellspacing="0" border="0">
991 <table cellpadding="0" cellspacing="0" border="0">
993 <td class="md" nowrap valign="top"> short int connection::state
998 <table cellspacing=5 cellpadding=0 border=0>
1006 Reserved for future use.
1010 Definition at line <a class="el" href="connection_8h-source.html#l00211">211</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
1013 <hr>The documentation for this class was generated from the following file:<ul>
1014 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
1015 <hr><address style="align: right;"><small>Generated on Mon Apr 19 02:34:43 2004 for InspIRCd by
1016 <a href="http://www.doxygen.org/index.html">
1017 <img src="doxygen.png" alt="doxygen" align="middle" border=0
1018 width=110 height=53></a>1.3-rc3 </small></address>