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: connection 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>connection Class Reference</h1>Please note: classes serverrec and userrec both inherit from class connection.
9 <a href="#_details">More...</a>
11 <code>#include <<a class="el" href="connection_8h-source.html">connection.h</a>></code>
13 Inheritance diagram for connection:<p><center><img src="classconnection__inherit__graph.gif" border="0" usemap="#connection__inherit__map" alt="Inheritance graph"></center>
14 <map name="connection__inherit__map">
15 <area href="classserverrec.html" shape="rect" coords="8,232,85,258" alt="">
16 <area href="classuserrec.html" shape="rect" coords="109,232,176,258" alt="">
17 <area href="classExtensible.html" shape="rect" coords="53,82,136,109" alt="">
18 <area href="classclassbase.html" shape="rect" coords="54,8,134,34" 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="classExtensible.html" shape="rect" coords="52,8,134,34" 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 class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a0">connection</a> ()</td></tr>
29 <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. </em> <a href="#a0"></a><em><br><br></td></tr>
30 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a1">CreateListener</a> (char *<a class="el" href="classconnection.html#o1">host</a>, int p)</td></tr>
32 <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a listening socket on 'host' using port number 'p'. </em> <a href="#a1"></a><em><br><br></td></tr>
33 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a2">BeginLink</a> (char *targethost, int <a class="el" href="classconnection.html#o8">port</a>, char *password, char *servername, int myport)</td></tr>
35 <tr><td class="mdescLeft"> </td><td class="mdescRight">Begin an outbound link to another ircd at targethost. </em> <a href="#a2"></a><em><br><br></td></tr>
36 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a3">MeshCookie</a> (char *targethost, int <a class="el" href="classconnection.html#o8">port</a>, unsigned long cookie, char *servername)</td></tr>
38 <tr><td class="mdescLeft"> </td><td class="mdescRight">Begin an outbound mesh link to another ircd on a network you are already an authenticated member of. </em> <a href="#a3"></a><em><br><br></td></tr>
39 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a4">TerminateLink</a> (char *targethost)</td></tr>
41 <tr><td class="mdescLeft"> </td><td class="mdescRight">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><br><br></td></tr>
42 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a5">SendPacket</a> (char *message, const char *<a class="el" href="classconnection.html#o1">host</a>)</td></tr>
44 <tr><td class="mdescLeft"> </td><td class="mdescRight">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><br><br></td></tr>
45 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a6">RecvPacket</a> (std::deque< std::string > &messages, char *<a class="el" href="classconnection.html#o1">host</a>)</td></tr>
47 <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the next available packet and returns true if data is available. </em> <a href="#a6"></a><em><br><br></td></tr>
48 <tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="classircd__connector.html">ircd_connector</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a7">FindHost</a> (std::string <a class="el" href="classconnection.html#o1">host</a>)</td></tr>
50 <tr><td class="mdescLeft"> </td><td class="mdescRight">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><br><br></td></tr>
51 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a8">AddIncoming</a> (int <a class="el" href="classconnection.html#o0">fd</a>, char *targethost, int sourceport)</td></tr>
53 <tr><td class="mdescLeft"> </td><td class="mdescRight">Add an incoming connection to the connection pool. </em> <a href="#a8"></a><em><br><br></td></tr>
54 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
55 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o0">fd</a></td></tr>
57 <tr><td class="mdescLeft"> </td><td class="mdescRight">File descriptor of the connection. </em> <a href="#o0"></a><em><br><br></td></tr>
58 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o1">host</a> [160]</td></tr>
60 <tr><td class="mdescLeft"> </td><td class="mdescRight">Hostname of connection. </em> <a href="#o1"></a><em><br><br></td></tr>
61 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o2">ip</a> [16]</td></tr>
63 <tr><td class="mdescLeft"> </td><td class="mdescRight">IP of connection. </em> <a href="#o2"></a><em><br><br></td></tr>
64 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o3">bytes_in</a></td></tr>
66 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for bytes inbound. </em> <a href="#o3"></a><em><br><br></td></tr>
67 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o4">bytes_out</a></td></tr>
69 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for bytes outbound. </em> <a href="#o4"></a><em><br><br></td></tr>
70 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o5">cmds_in</a></td></tr>
72 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for commands inbound. </em> <a href="#o5"></a><em><br><br></td></tr>
73 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o6">cmds_out</a></td></tr>
75 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for commands outbound. </em> <a href="#o6"></a><em><br><br></td></tr>
76 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o7">haspassed</a></td></tr>
78 <tr><td class="mdescLeft"> </td><td class="mdescRight">True if server/user has authenticated, false if otherwise. </em> <a href="#o7"></a><em><br><br></td></tr>
79 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o8">port</a></td></tr>
81 <tr><td class="mdescLeft"> </td><td class="mdescRight">Port number For a userrec, this is the port they connected to the network on. </em> <a href="#o8"></a><em><br><br></td></tr>
82 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o9">registered</a></td></tr>
84 <tr><td class="mdescLeft"> </td><td class="mdescRight">Used by userrec to indicate the registration status of the connection. </em> <a href="#o9"></a><em><br><br></td></tr>
85 <tr><td class="memItemLeft" nowrap align=right valign=top>time_t </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o10">lastping</a></td></tr>
87 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time the connection was last pinged. </em> <a href="#o10"></a><em><br><br></td></tr>
88 <tr><td class="memItemLeft" nowrap align=right valign=top>time_t </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o11">signon</a></td></tr>
90 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time the connection was created, set in the constructor. </em> <a href="#o11"></a><em><br><br></td></tr>
91 <tr><td class="memItemLeft" nowrap align=right valign=top>time_t </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o12">idle_lastmsg</a></td></tr>
93 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time that the connection last sent data, used to calculate idle time. </em> <a href="#o12"></a><em><br><br></td></tr>
94 <tr><td class="memItemLeft" nowrap align=right valign=top>time_t </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o13">nping</a></td></tr>
96 <tr><td class="mdescLeft"> </td><td class="mdescRight">Used by PING checks with clients. </em> <a href="#o13"></a><em><br><br></td></tr>
97 <tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< <a class="el" href="classircd__connector.html">ircd_connector</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o14">connectors</a></td></tr>
99 <tr><td class="mdescLeft"> </td><td class="mdescRight">With a serverrec, this is a list of all established server connections. </em> <a href="#o14"></a><em><br><br></td></tr>
101 <hr><a name="_details"></a><h2>Detailed Description</h2>
102 Please note: classes serverrec and userrec both inherit from class connection.
106 Definition at line <a class="el" href="connection_8h-source.html#l00210">210</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
107 <a name="a0" doxytag="connection::connection"></a><p>
108 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
111 <table cellpadding="0" cellspacing="0" border="0">
113 <td class="md" nowrap valign="top"> connection::connection </td>
114 <td class="md" valign="top">( </td>
115 <td class="mdname1" valign="top" nowrap> </td>
116 <td class="md" valign="top"> ) </td>
117 <td class="md" nowrap></td>
124 <table cellspacing=5 cellpadding=0 border=0>
137 <hr><h2>Member Function Documentation</h2>
138 <a name="a8" doxytag="connection::AddIncoming"></a><p>
139 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
142 <table cellpadding="0" cellspacing="0" border="0">
144 <td class="md" nowrap valign="top"> bool connection::AddIncoming </td>
145 <td class="md" valign="top">( </td>
146 <td class="md" nowrap valign="top">int </td>
147 <td class="mdname" nowrap> <em>fd</em>, </td>
152 <td class="md" nowrap>char * </td>
153 <td class="mdname" nowrap> <em>targethost</em>, </td>
158 <td class="md" nowrap>int </td>
159 <td class="mdname" nowrap> <em>sourceport</em></td>
163 <td class="md">) </td>
164 <td class="md" colspan="2"></td>
171 <table cellspacing=5 cellpadding=0 border=0>
179 Add an incoming connection to the connection pool.
181 (reserved for core use) </td>
184 <a name="a2" doxytag="connection::BeginLink"></a><p>
185 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
188 <table cellpadding="0" cellspacing="0" border="0">
190 <td class="md" nowrap valign="top"> bool connection::BeginLink </td>
191 <td class="md" valign="top">( </td>
192 <td class="md" nowrap valign="top">char * </td>
193 <td class="mdname" nowrap> <em>targethost</em>, </td>
198 <td class="md" nowrap>int </td>
199 <td class="mdname" nowrap> <em>port</em>, </td>
204 <td class="md" nowrap>char * </td>
205 <td class="mdname" nowrap> <em>password</em>, </td>
210 <td class="md" nowrap>char * </td>
211 <td class="mdname" nowrap> <em>servername</em>, </td>
216 <td class="md" nowrap>int </td>
217 <td class="mdname" nowrap> <em>myport</em></td>
221 <td class="md">) </td>
222 <td class="md" colspan="2"></td>
229 <table cellspacing=5 cellpadding=0 border=0>
237 Begin an outbound link to another ircd at targethost.
242 <a name="a1" doxytag="connection::CreateListener"></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"> bool connection::CreateListener </td>
249 <td class="md" valign="top">( </td>
250 <td class="md" nowrap valign="top">char * </td>
251 <td class="mdname" nowrap> <em>host</em>, </td>
256 <td class="md" nowrap>int </td>
257 <td class="mdname" nowrap> <em>p</em></td>
261 <td class="md">) </td>
262 <td class="md" colspan="2"></td>
269 <table cellspacing=5 cellpadding=0 border=0>
277 Create a listening socket on 'host' using port number 'p'.
282 <a name="a7" doxytag="connection::FindHost"></a><p>
283 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
286 <table cellpadding="0" cellspacing="0" border="0">
288 <td class="md" nowrap valign="top"> <a class="el" href="classircd__connector.html">ircd_connector</a>* connection::FindHost </td>
289 <td class="md" valign="top">( </td>
290 <td class="md" nowrap valign="top">std::string </td>
291 <td class="mdname1" valign="top" nowrap> <em>host</em> </td>
292 <td class="md" valign="top"> ) </td>
293 <td class="md" nowrap></td>
300 <table cellspacing=5 cellpadding=0 border=0>
308 Find the <a class="el" href="classircd__connector.html">ircd_connector</a> oject related to a certain servername given in 'host'.
313 <a name="a3" doxytag="connection::MeshCookie"></a><p>
314 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
317 <table cellpadding="0" cellspacing="0" border="0">
319 <td class="md" nowrap valign="top"> bool connection::MeshCookie </td>
320 <td class="md" valign="top">( </td>
321 <td class="md" nowrap valign="top">char * </td>
322 <td class="mdname" nowrap> <em>targethost</em>, </td>
327 <td class="md" nowrap>int </td>
328 <td class="mdname" nowrap> <em>port</em>, </td>
333 <td class="md" nowrap>unsigned long </td>
334 <td class="mdname" nowrap> <em>cookie</em>, </td>
339 <td class="md" nowrap>char * </td>
340 <td class="mdname" nowrap> <em>servername</em></td>
344 <td class="md">) </td>
345 <td class="md" colspan="2"></td>
352 <table cellspacing=5 cellpadding=0 border=0>
360 Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.
365 <a name="a6" doxytag="connection::RecvPacket"></a><p>
366 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
369 <table cellpadding="0" cellspacing="0" border="0">
371 <td class="md" nowrap valign="top"> bool connection::RecvPacket </td>
372 <td class="md" valign="top">( </td>
373 <td class="md" nowrap valign="top">std::deque< std::string > & </td>
374 <td class="mdname" nowrap> <em>messages</em>, </td>
379 <td class="md" nowrap>char * </td>
380 <td class="mdname" nowrap> <em>host</em></td>
384 <td class="md">) </td>
385 <td class="md" colspan="2"></td>
392 <table cellspacing=5 cellpadding=0 border=0>
400 Returns the next available packet and returns true if data is available.
402 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>
405 <a name="a5" doxytag="connection::SendPacket"></a><p>
406 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
409 <table cellpadding="0" cellspacing="0" border="0">
411 <td class="md" nowrap valign="top"> bool connection::SendPacket </td>
412 <td class="md" valign="top">( </td>
413 <td class="md" nowrap valign="top">char * </td>
414 <td class="mdname" nowrap> <em>message</em>, </td>
419 <td class="md" nowrap>const char * </td>
420 <td class="mdname" nowrap> <em>host</em></td>
424 <td class="md">) </td>
425 <td class="md" colspan="2"></td>
432 <table cellspacing=5 cellpadding=0 border=0>
440 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.
445 <a name="a4" doxytag="connection::TerminateLink"></a><p>
446 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
449 <table cellpadding="0" cellspacing="0" border="0">
451 <td class="md" nowrap valign="top"> void connection::TerminateLink </td>
452 <td class="md" valign="top">( </td>
453 <td class="md" nowrap valign="top">char * </td>
454 <td class="mdname1" valign="top" nowrap> <em>targethost</em> </td>
455 <td class="md" valign="top"> ) </td>
456 <td class="md" nowrap></td>
463 <table cellspacing=5 cellpadding=0 border=0>
471 Terminate a link to 'targethost' by calling the <a class="el" href="classircd__connector.html#a13">ircd_connector::CloseConnection</a> method.
476 <hr><h2>Member Data Documentation</h2>
477 <a name="o3" doxytag="connection::bytes_in"></a><p>
478 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
481 <table cellpadding="0" cellspacing="0" border="0">
483 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o3">connection::bytes_in</a>
488 <table cellspacing=5 cellpadding=0 border=0>
496 Stats counter for bytes inbound.
500 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>.
502 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
505 <a name="o4" doxytag="connection::bytes_out"></a><p>
506 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
509 <table cellpadding="0" cellspacing="0" border="0">
511 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o4">connection::bytes_out</a>
516 <table cellspacing=5 cellpadding=0 border=0>
524 Stats counter for bytes outbound.
528 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>.
530 Referenced by <a class="el" href="users_8cpp-source.html#l00241">userrec::FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
533 <a name="o5" doxytag="connection::cmds_in"></a><p>
534 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
537 <table cellpadding="0" cellspacing="0" border="0">
539 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o5">connection::cmds_in</a>
544 <table cellspacing=5 cellpadding=0 border=0>
552 Stats counter for commands inbound.
556 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>.
558 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
561 <a name="o6" doxytag="connection::cmds_out"></a><p>
562 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
565 <table cellpadding="0" cellspacing="0" border="0">
567 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o6">connection::cmds_out</a>
572 <table cellspacing=5 cellpadding=0 border=0>
580 Stats counter for commands outbound.
584 Definition at line <a class="el" href="connection_8h-source.html#l00239">239</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
586 Referenced by <a class="el" href="users_8cpp-source.html#l00241">userrec::FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
589 <a name="o14" doxytag="connection::connectors"></a><p>
590 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
593 <table cellpadding="0" cellspacing="0" border="0">
595 <td class="md" nowrap valign="top"> std::vector<<a class="el" href="classircd__connector.html">ircd_connector</a>> <a class="el" href="classconnection.html#o14">connection::connectors</a>
600 <table cellspacing=5 cellpadding=0 border=0>
608 With a serverrec, this is a list of all established server connections.
610 With a userrec this is unused.
612 Definition at line <a class="el" href="connection_8h-source.html#l00274">274</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
615 <a name="o0" doxytag="connection::fd"></a><p>
616 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
619 <table cellpadding="0" cellspacing="0" border="0">
621 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o0">connection::fd</a>
626 <table cellspacing=5 cellpadding=0 border=0>
634 File descriptor of the connection.
638 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>.
640 Referenced by <a class="el" href="modules_8cpp-source.html#l00967">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00700">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00529">Server::SendTo()</a>, <a class="el" href="servers_8cpp-source.html#l00026">serverrec::serverrec()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00681">Server::UserToPseudo()</a>. </td>
643 <a name="o7" doxytag="connection::haspassed"></a><p>
644 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
647 <table cellpadding="0" cellspacing="0" border="0">
649 <td class="md" nowrap valign="top"> bool <a class="el" href="classconnection.html#o7">connection::haspassed</a>
654 <table cellspacing=5 cellpadding=0 border=0>
662 True if server/user has authenticated, false if otherwise.
666 Definition at line <a class="el" href="connection_8h-source.html#l00243">243</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
668 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
671 <a name="o1" doxytag="connection::host"></a><p>
672 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
675 <table cellpadding="0" cellspacing="0" border="0">
677 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o1">connection::host</a>[160]
682 <table cellspacing=5 cellpadding=0 border=0>
690 Hostname of connection.
692 Not used if this is a serverrec
694 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>.
696 Referenced by <a class="el" href="users_8cpp-source.html#l00068">userrec::GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00700">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00681">Server::UserToPseudo()</a>. </td>
699 <a name="o12" doxytag="connection::idle_lastmsg"></a><p>
700 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
703 <table cellpadding="0" cellspacing="0" border="0">
705 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o12">connection::idle_lastmsg</a>
710 <table cellspacing=5 cellpadding=0 border=0>
718 Time that the connection last sent data, used to calculate idle time.
722 Definition at line <a class="el" href="connection_8h-source.html#l00265">265</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
724 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
727 <a name="o2" doxytag="connection::ip"></a><p>
728 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
731 <table cellpadding="0" cellspacing="0" border="0">
733 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o2">connection::ip</a>[16]
738 <table cellspacing=5 cellpadding=0 border=0>
750 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>.
752 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
755 <a name="o10" doxytag="connection::lastping"></a><p>
756 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
759 <table cellpadding="0" cellspacing="0" border="0">
761 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o10">connection::lastping</a>
766 <table cellspacing=5 cellpadding=0 border=0>
774 Time the connection was last pinged.
778 Definition at line <a class="el" href="connection_8h-source.html#l00257">257</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
780 Referenced by <a class="el" href="servers_8cpp-source.html#l00026">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
783 <a name="o13" doxytag="connection::nping"></a><p>
784 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
787 <table cellpadding="0" cellspacing="0" border="0">
789 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o13">connection::nping</a>
794 <table cellspacing=5 cellpadding=0 border=0>
802 Used by PING checks with clients.
806 Definition at line <a class="el" href="connection_8h-source.html#l00269">269</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
808 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
811 <a name="o8" doxytag="connection::port"></a><p>
812 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
815 <table cellpadding="0" cellspacing="0" border="0">
817 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o8">connection::port</a>
822 <table cellspacing=5 cellpadding=0 border=0>
830 Port number For a userrec, this is the port they connected to the network on.
832 For a serverrec this is the current listening port of the serverrec object.
834 Definition at line <a class="el" href="connection_8h-source.html#l00249">249</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
836 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
839 <a name="o9" doxytag="connection::registered"></a><p>
840 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
843 <table cellpadding="0" cellspacing="0" border="0">
845 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o9">connection::registered</a>
850 <table cellspacing=5 cellpadding=0 border=0>
858 Used by userrec to indicate the registration status of the connection.
862 Definition at line <a class="el" href="connection_8h-source.html#l00253">253</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
864 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
867 <a name="o11" doxytag="connection::signon"></a><p>
868 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
871 <table cellpadding="0" cellspacing="0" border="0">
873 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o11">connection::signon</a>
878 <table cellspacing=5 cellpadding=0 border=0>
886 Time the connection was created, set in the constructor.
890 Definition at line <a class="el" href="connection_8h-source.html#l00261">261</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
892 Referenced by <a class="el" href="servers_8cpp-source.html#l00026">serverrec::serverrec()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
895 <hr>The documentation for this class was generated from the following file:<ul>
896 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
897 <hr size="1"><address style="align: right;"><small>Generated on Fri May 13 01:59:35 2005 for InspIRCd by
898 <a href="http://www.doxygen.org/index.html">
899 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
900 </a>1.3.3 </small></address>