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 Inherits <a class="el" href="classExtensible.html">Extensible</a>.
15 Inherited by <a class="el" href="classserverrec.html">serverrec</a>, and <a class="el" href="classuserrec.html">userrec</a>.
17 <a href="classconnection-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
19 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
20 <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>
22 <tr><td class="mdescLeft"> </td><td class="mdescRight">Default constructor. </em> <a href="#a0"></a><em><br><br></td></tr>
23 <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>
25 <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>
26 <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>
28 <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>
29 <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>
31 <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>
32 <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>
34 <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>
35 <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>
37 <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>
38 <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>
40 <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>
41 <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>
43 <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>
44 <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>
46 <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>
47 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
48 <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>
50 <tr><td class="mdescLeft"> </td><td class="mdescRight">File descriptor of the connection. </em> <a href="#o0"></a><em><br><br></td></tr>
51 <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>
53 <tr><td class="mdescLeft"> </td><td class="mdescRight">Hostname of connection. </em> <a href="#o1"></a><em><br><br></td></tr>
54 <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>
56 <tr><td class="mdescLeft"> </td><td class="mdescRight">IP of connection. </em> <a href="#o2"></a><em><br><br></td></tr>
57 <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>
59 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for bytes inbound. </em> <a href="#o3"></a><em><br><br></td></tr>
60 <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>
62 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for bytes outbound. </em> <a href="#o4"></a><em><br><br></td></tr>
63 <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>
65 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for commands inbound. </em> <a href="#o5"></a><em><br><br></td></tr>
66 <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>
68 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for commands outbound. </em> <a href="#o6"></a><em><br><br></td></tr>
69 <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>
71 <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>
72 <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>
74 <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>
75 <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>
77 <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>
78 <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>
80 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time the connection was last pinged. </em> <a href="#o10"></a><em><br><br></td></tr>
81 <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>
83 <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>
84 <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>
86 <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>
87 <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>
89 <tr><td class="mdescLeft"> </td><td class="mdescRight">Used by PING checks with clients. </em> <a href="#o13"></a><em><br><br></td></tr>
90 <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>
92 <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>
94 <hr><a name="_details"></a><h2>Detailed Description</h2>
95 Please note: classes serverrec and userrec both inherit from class connection.
99 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>
100 <a name="a0" doxytag="connection::connection"></a><p>
101 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
104 <table cellpadding="0" cellspacing="0" border="0">
106 <td class="md" nowrap valign="top"> connection::connection </td>
107 <td class="md" valign="top">( </td>
108 <td class="mdname1" valign="top" nowrap> </td>
109 <td class="md" valign="top"> ) </td>
110 <td class="md" nowrap></td>
117 <table cellspacing=5 cellpadding=0 border=0>
130 <hr><h2>Member Function Documentation</h2>
131 <a name="a8" doxytag="connection::AddIncoming"></a><p>
132 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
135 <table cellpadding="0" cellspacing="0" border="0">
137 <td class="md" nowrap valign="top"> bool connection::AddIncoming </td>
138 <td class="md" valign="top">( </td>
139 <td class="md" nowrap valign="top">int </td>
140 <td class="mdname" nowrap> <em>fd</em>, </td>
145 <td class="md" nowrap>char * </td>
146 <td class="mdname" nowrap> <em>targethost</em>, </td>
151 <td class="md" nowrap>int </td>
152 <td class="mdname" nowrap> <em>sourceport</em></td>
156 <td class="md">) </td>
157 <td class="md" colspan="2"></td>
164 <table cellspacing=5 cellpadding=0 border=0>
172 Add an incoming connection to the connection pool.
174 (reserved for core use) </td>
177 <a name="a2" doxytag="connection::BeginLink"></a><p>
178 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
181 <table cellpadding="0" cellspacing="0" border="0">
183 <td class="md" nowrap valign="top"> bool connection::BeginLink </td>
184 <td class="md" valign="top">( </td>
185 <td class="md" nowrap valign="top">char * </td>
186 <td class="mdname" nowrap> <em>targethost</em>, </td>
191 <td class="md" nowrap>int </td>
192 <td class="mdname" nowrap> <em>port</em>, </td>
197 <td class="md" nowrap>char * </td>
198 <td class="mdname" nowrap> <em>password</em>, </td>
203 <td class="md" nowrap>char * </td>
204 <td class="mdname" nowrap> <em>servername</em>, </td>
209 <td class="md" nowrap>int </td>
210 <td class="mdname" nowrap> <em>myport</em></td>
214 <td class="md">) </td>
215 <td class="md" colspan="2"></td>
222 <table cellspacing=5 cellpadding=0 border=0>
230 Begin an outbound link to another ircd at targethost.
235 <a name="a1" doxytag="connection::CreateListener"></a><p>
236 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
239 <table cellpadding="0" cellspacing="0" border="0">
241 <td class="md" nowrap valign="top"> bool connection::CreateListener </td>
242 <td class="md" valign="top">( </td>
243 <td class="md" nowrap valign="top">char * </td>
244 <td class="mdname" nowrap> <em>host</em>, </td>
249 <td class="md" nowrap>int </td>
250 <td class="mdname" nowrap> <em>p</em></td>
254 <td class="md">) </td>
255 <td class="md" colspan="2"></td>
262 <table cellspacing=5 cellpadding=0 border=0>
270 Create a listening socket on 'host' using port number 'p'.
275 <a name="a7" doxytag="connection::FindHost"></a><p>
276 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
279 <table cellpadding="0" cellspacing="0" border="0">
281 <td class="md" nowrap valign="top"> <a class="el" href="classircd__connector.html">ircd_connector</a>* connection::FindHost </td>
282 <td class="md" valign="top">( </td>
283 <td class="md" nowrap valign="top">std::string </td>
284 <td class="mdname1" valign="top" nowrap> <em>host</em> </td>
285 <td class="md" valign="top"> ) </td>
286 <td class="md" nowrap></td>
293 <table cellspacing=5 cellpadding=0 border=0>
301 Find the <a class="el" href="classircd__connector.html">ircd_connector</a> oject related to a certain servername given in 'host'.
306 <a name="a3" doxytag="connection::MeshCookie"></a><p>
307 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
310 <table cellpadding="0" cellspacing="0" border="0">
312 <td class="md" nowrap valign="top"> bool connection::MeshCookie </td>
313 <td class="md" valign="top">( </td>
314 <td class="md" nowrap valign="top">char * </td>
315 <td class="mdname" nowrap> <em>targethost</em>, </td>
320 <td class="md" nowrap>int </td>
321 <td class="mdname" nowrap> <em>port</em>, </td>
326 <td class="md" nowrap>unsigned long </td>
327 <td class="mdname" nowrap> <em>cookie</em>, </td>
332 <td class="md" nowrap>char * </td>
333 <td class="mdname" nowrap> <em>servername</em></td>
337 <td class="md">) </td>
338 <td class="md" colspan="2"></td>
345 <table cellspacing=5 cellpadding=0 border=0>
353 Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.
358 <a name="a6" doxytag="connection::RecvPacket"></a><p>
359 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
362 <table cellpadding="0" cellspacing="0" border="0">
364 <td class="md" nowrap valign="top"> bool connection::RecvPacket </td>
365 <td class="md" valign="top">( </td>
366 <td class="md" nowrap valign="top">std::deque< std::string > & </td>
367 <td class="mdname" nowrap> <em>messages</em>, </td>
372 <td class="md" nowrap>char * </td>
373 <td class="mdname" nowrap> <em>host</em></td>
377 <td class="md">) </td>
378 <td class="md" colspan="2"></td>
385 <table cellspacing=5 cellpadding=0 border=0>
393 Returns the next available packet and returns true if data is available.
395 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>
398 <a name="a5" doxytag="connection::SendPacket"></a><p>
399 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
402 <table cellpadding="0" cellspacing="0" border="0">
404 <td class="md" nowrap valign="top"> bool connection::SendPacket </td>
405 <td class="md" valign="top">( </td>
406 <td class="md" nowrap valign="top">char * </td>
407 <td class="mdname" nowrap> <em>message</em>, </td>
412 <td class="md" nowrap>const char * </td>
413 <td class="mdname" nowrap> <em>host</em></td>
417 <td class="md">) </td>
418 <td class="md" colspan="2"></td>
425 <table cellspacing=5 cellpadding=0 border=0>
433 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.
438 <a name="a4" doxytag="connection::TerminateLink"></a><p>
439 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
442 <table cellpadding="0" cellspacing="0" border="0">
444 <td class="md" nowrap valign="top"> void connection::TerminateLink </td>
445 <td class="md" valign="top">( </td>
446 <td class="md" nowrap valign="top">char * </td>
447 <td class="mdname1" valign="top" nowrap> <em>targethost</em> </td>
448 <td class="md" valign="top"> ) </td>
449 <td class="md" nowrap></td>
456 <table cellspacing=5 cellpadding=0 border=0>
464 Terminate a link to 'targethost' by calling the <a class="el" href="classircd__connector.html#a13">ircd_connector::CloseConnection</a> method.
469 <hr><h2>Member Data Documentation</h2>
470 <a name="o3" doxytag="connection::bytes_in"></a><p>
471 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
474 <table cellpadding="0" cellspacing="0" border="0">
476 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o3">connection::bytes_in</a>
481 <table cellspacing=5 cellpadding=0 border=0>
489 Stats counter for bytes inbound.
493 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>.
495 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
498 <a name="o4" doxytag="connection::bytes_out"></a><p>
499 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
502 <table cellpadding="0" cellspacing="0" border="0">
504 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o4">connection::bytes_out</a>
509 <table cellspacing=5 cellpadding=0 border=0>
517 Stats counter for bytes outbound.
521 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>.
523 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>
526 <a name="o5" doxytag="connection::cmds_in"></a><p>
527 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
530 <table cellpadding="0" cellspacing="0" border="0">
532 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o5">connection::cmds_in</a>
537 <table cellspacing=5 cellpadding=0 border=0>
545 Stats counter for commands inbound.
549 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>.
551 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
554 <a name="o6" doxytag="connection::cmds_out"></a><p>
555 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
558 <table cellpadding="0" cellspacing="0" border="0">
560 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o6">connection::cmds_out</a>
565 <table cellspacing=5 cellpadding=0 border=0>
573 Stats counter for commands outbound.
577 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>.
579 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>
582 <a name="o14" doxytag="connection::connectors"></a><p>
583 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
586 <table cellpadding="0" cellspacing="0" border="0">
588 <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>
593 <table cellspacing=5 cellpadding=0 border=0>
601 With a serverrec, this is a list of all established server connections.
603 With a userrec this is unused.
605 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>
608 <a name="o0" doxytag="connection::fd"></a><p>
609 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
612 <table cellpadding="0" cellspacing="0" border="0">
614 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o0">connection::fd</a>
619 <table cellspacing=5 cellpadding=0 border=0>
627 File descriptor of the connection.
631 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>.
633 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>
636 <a name="o7" doxytag="connection::haspassed"></a><p>
637 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
640 <table cellpadding="0" cellspacing="0" border="0">
642 <td class="md" nowrap valign="top"> bool <a class="el" href="classconnection.html#o7">connection::haspassed</a>
647 <table cellspacing=5 cellpadding=0 border=0>
655 True if server/user has authenticated, false if otherwise.
659 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>.
661 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
664 <a name="o1" doxytag="connection::host"></a><p>
665 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
668 <table cellpadding="0" cellspacing="0" border="0">
670 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o1">connection::host</a>[160]
675 <table cellspacing=5 cellpadding=0 border=0>
683 Hostname of connection.
685 Not used if this is a serverrec
687 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>.
689 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>
692 <a name="o12" doxytag="connection::idle_lastmsg"></a><p>
693 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
696 <table cellpadding="0" cellspacing="0" border="0">
698 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o12">connection::idle_lastmsg</a>
703 <table cellspacing=5 cellpadding=0 border=0>
711 Time that the connection last sent data, used to calculate idle time.
715 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>.
717 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
720 <a name="o2" doxytag="connection::ip"></a><p>
721 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
724 <table cellpadding="0" cellspacing="0" border="0">
726 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o2">connection::ip</a>[16]
731 <table cellspacing=5 cellpadding=0 border=0>
743 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>.
745 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
748 <a name="o10" doxytag="connection::lastping"></a><p>
749 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
752 <table cellpadding="0" cellspacing="0" border="0">
754 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o10">connection::lastping</a>
759 <table cellspacing=5 cellpadding=0 border=0>
767 Time the connection was last pinged.
771 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>.
773 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>
776 <a name="o13" doxytag="connection::nping"></a><p>
777 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
780 <table cellpadding="0" cellspacing="0" border="0">
782 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o13">connection::nping</a>
787 <table cellspacing=5 cellpadding=0 border=0>
795 Used by PING checks with clients.
799 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>.
801 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
804 <a name="o8" doxytag="connection::port"></a><p>
805 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
808 <table cellpadding="0" cellspacing="0" border="0">
810 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o8">connection::port</a>
815 <table cellspacing=5 cellpadding=0 border=0>
823 Port number For a userrec, this is the port they connected to the network on.
825 For a serverrec this is the current listening port of the serverrec object.
827 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>.
829 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
832 <a name="o9" doxytag="connection::registered"></a><p>
833 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
836 <table cellpadding="0" cellspacing="0" border="0">
838 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o9">connection::registered</a>
843 <table cellspacing=5 cellpadding=0 border=0>
851 Used by userrec to indicate the registration status of the connection.
855 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>.
857 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
860 <a name="o11" doxytag="connection::signon"></a><p>
861 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
864 <table cellpadding="0" cellspacing="0" border="0">
866 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o11">connection::signon</a>
871 <table cellspacing=5 cellpadding=0 border=0>
879 Time the connection was created, set in the constructor.
883 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>.
885 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>
888 <hr>The documentation for this class was generated from the following file:<ul>
889 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
890 <hr size="1"><address style="align: right;"><small>Generated on Thu May 12 22:59:02 2005 for InspIRCd by
891 <a href="http://www.doxygen.org/index.html">
892 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
893 </a>1.3.3 </small></address>