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#o9">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#o9">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> [256]</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> [32]</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>char </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o3">inbuf</a> [MAXBUF]</td></tr>
59 <tr><td class="mdescLeft"> </td><td class="mdescRight">Inbuf of connection. </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_in</a></td></tr>
62 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for bytes inbound. </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">bytes_out</a></td></tr>
65 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for bytes outbound. </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_in</a></td></tr>
68 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for commands inbound. </em> <a href="#o6"></a><em><br><br></td></tr>
69 <tr><td class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o7">cmds_out</a></td></tr>
71 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for commands outbound. </em> <a href="#o7"></a><em><br><br></td></tr>
72 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o8">haspassed</a></td></tr>
74 <tr><td class="mdescLeft"> </td><td class="mdescRight">True if server/user has authenticated, false if otherwise. </em> <a href="#o8"></a><em><br><br></td></tr>
75 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o9">port</a></td></tr>
77 <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="#o9"></a><em><br><br></td></tr>
78 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o10">registered</a></td></tr>
80 <tr><td class="mdescLeft"> </td><td class="mdescRight">Used by userrec to indicate the registration status of the connection. </em> <a href="#o10"></a><em><br><br></td></tr>
81 <tr><td class="memItemLeft" nowrap align=right valign=top>short int </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o11">state</a></td></tr>
83 <tr><td class="mdescLeft"> </td><td class="mdescRight">Reserved for future use. </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">lastping</a></td></tr>
86 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time the connection was last pinged. </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">signon</a></td></tr>
89 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time the connection was created, set in the constructor. </em> <a href="#o13"></a><em><br><br></td></tr>
90 <tr><td class="memItemLeft" nowrap align=right valign=top>time_t </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o14">idle_lastmsg</a></td></tr>
92 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time that the connection last sent data, used to calculate idle time. </em> <a href="#o14"></a><em><br><br></td></tr>
93 <tr><td class="memItemLeft" nowrap align=right valign=top>time_t </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o15">nping</a></td></tr>
95 <tr><td class="mdescLeft"> </td><td class="mdescRight">Used by PING checks with clients. </em> <a href="#o15"></a><em><br><br></td></tr>
96 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o16">internal_addr</a> [MAXBUF]</td></tr>
98 <tr><td class="mdescLeft"> </td><td class="mdescRight">Unused, will be removed in a future alpha/beta. </em> <a href="#o16"></a><em><br><br></td></tr>
99 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#o17">internal_port</a></td></tr>
101 <tr><td class="mdescLeft"> </td><td class="mdescRight">Unused, will be removed in a future alpha/beta. </em> <a href="#o17"></a><em><br><br></td></tr>
102 <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#o18">connectors</a></td></tr>
104 <tr><td class="mdescLeft"> </td><td class="mdescRight">With a serverrec, this is a list of all established server connections. </em> <a href="#o18"></a><em><br><br></td></tr>
106 <hr><a name="_details"></a><h2>Detailed Description</h2>
107 Please note: classes serverrec and userrec both inherit from class connection.
111 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>
112 <a name="a0" doxytag="connection::connection"></a><p>
113 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
116 <table cellpadding="0" cellspacing="0" border="0">
118 <td class="md" nowrap valign="top"> connection::connection </td>
119 <td class="md" valign="top">( </td>
120 <td class="mdname1" valign="top" nowrap> </td>
121 <td class="md" valign="top"> ) </td>
122 <td class="md" nowrap></td>
129 <table cellspacing=5 cellpadding=0 border=0>
142 <hr><h2>Member Function Documentation</h2>
143 <a name="a8" doxytag="connection::AddIncoming"></a><p>
144 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
147 <table cellpadding="0" cellspacing="0" border="0">
149 <td class="md" nowrap valign="top"> bool connection::AddIncoming </td>
150 <td class="md" valign="top">( </td>
151 <td class="md" nowrap valign="top">int </td>
152 <td class="mdname" nowrap> <em>fd</em>, </td>
157 <td class="md" nowrap>char * </td>
158 <td class="mdname" nowrap> <em>targethost</em>, </td>
163 <td class="md" nowrap>int </td>
164 <td class="mdname" nowrap> <em>sourceport</em></td>
168 <td class="md">) </td>
169 <td class="md" colspan="2"></td>
176 <table cellspacing=5 cellpadding=0 border=0>
184 Add an incoming connection to the connection pool.
186 (reserved for core use) </td>
189 <a name="a2" doxytag="connection::BeginLink"></a><p>
190 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
193 <table cellpadding="0" cellspacing="0" border="0">
195 <td class="md" nowrap valign="top"> bool connection::BeginLink </td>
196 <td class="md" valign="top">( </td>
197 <td class="md" nowrap valign="top">char * </td>
198 <td class="mdname" nowrap> <em>targethost</em>, </td>
203 <td class="md" nowrap>int </td>
204 <td class="mdname" nowrap> <em>port</em>, </td>
209 <td class="md" nowrap>char * </td>
210 <td class="mdname" nowrap> <em>password</em>, </td>
215 <td class="md" nowrap>char * </td>
216 <td class="mdname" nowrap> <em>servername</em>, </td>
221 <td class="md" nowrap>int </td>
222 <td class="mdname" nowrap> <em>myport</em></td>
226 <td class="md">) </td>
227 <td class="md" colspan="2"></td>
234 <table cellspacing=5 cellpadding=0 border=0>
242 Begin an outbound link to another ircd at targethost.
247 <a name="a1" doxytag="connection::CreateListener"></a><p>
248 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
251 <table cellpadding="0" cellspacing="0" border="0">
253 <td class="md" nowrap valign="top"> bool connection::CreateListener </td>
254 <td class="md" valign="top">( </td>
255 <td class="md" nowrap valign="top">char * </td>
256 <td class="mdname" nowrap> <em>host</em>, </td>
261 <td class="md" nowrap>int </td>
262 <td class="mdname" nowrap> <em>p</em></td>
266 <td class="md">) </td>
267 <td class="md" colspan="2"></td>
274 <table cellspacing=5 cellpadding=0 border=0>
282 Create a listening socket on 'host' using port number 'p'.
287 <a name="a7" doxytag="connection::FindHost"></a><p>
288 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
291 <table cellpadding="0" cellspacing="0" border="0">
293 <td class="md" nowrap valign="top"> <a class="el" href="classircd__connector.html">ircd_connector</a>* connection::FindHost </td>
294 <td class="md" valign="top">( </td>
295 <td class="md" nowrap valign="top">std::string </td>
296 <td class="mdname1" valign="top" nowrap> <em>host</em> </td>
297 <td class="md" valign="top"> ) </td>
298 <td class="md" nowrap></td>
305 <table cellspacing=5 cellpadding=0 border=0>
313 Find the <a class="el" href="classircd__connector.html">ircd_connector</a> oject related to a certain servername given in 'host'.
318 <a name="a3" doxytag="connection::MeshCookie"></a><p>
319 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
322 <table cellpadding="0" cellspacing="0" border="0">
324 <td class="md" nowrap valign="top"> bool connection::MeshCookie </td>
325 <td class="md" valign="top">( </td>
326 <td class="md" nowrap valign="top">char * </td>
327 <td class="mdname" nowrap> <em>targethost</em>, </td>
332 <td class="md" nowrap>int </td>
333 <td class="mdname" nowrap> <em>port</em>, </td>
338 <td class="md" nowrap>unsigned long </td>
339 <td class="mdname" nowrap> <em>cookie</em>, </td>
344 <td class="md" nowrap>char * </td>
345 <td class="mdname" nowrap> <em>servername</em></td>
349 <td class="md">) </td>
350 <td class="md" colspan="2"></td>
357 <table cellspacing=5 cellpadding=0 border=0>
365 Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.
370 <a name="a6" doxytag="connection::RecvPacket"></a><p>
371 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
374 <table cellpadding="0" cellspacing="0" border="0">
376 <td class="md" nowrap valign="top"> bool connection::RecvPacket </td>
377 <td class="md" valign="top">( </td>
378 <td class="md" nowrap valign="top">std::deque< std::string > & </td>
379 <td class="mdname" nowrap> <em>messages</em>, </td>
384 <td class="md" nowrap>char * </td>
385 <td class="mdname" nowrap> <em>host</em></td>
389 <td class="md">) </td>
390 <td class="md" colspan="2"></td>
397 <table cellspacing=5 cellpadding=0 border=0>
405 Returns the next available packet and returns true if data is available.
407 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>
410 <a name="a5" doxytag="connection::SendPacket"></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 connection::SendPacket </td>
417 <td class="md" valign="top">( </td>
418 <td class="md" nowrap valign="top">char * </td>
419 <td class="mdname" nowrap> <em>message</em>, </td>
424 <td class="md" nowrap>const char * </td>
425 <td class="mdname" nowrap> <em>host</em></td>
429 <td class="md">) </td>
430 <td class="md" colspan="2"></td>
437 <table cellspacing=5 cellpadding=0 border=0>
445 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.
450 <a name="a4" doxytag="connection::TerminateLink"></a><p>
451 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
454 <table cellpadding="0" cellspacing="0" border="0">
456 <td class="md" nowrap valign="top"> void connection::TerminateLink </td>
457 <td class="md" valign="top">( </td>
458 <td class="md" nowrap valign="top">char * </td>
459 <td class="mdname1" valign="top" nowrap> <em>targethost</em> </td>
460 <td class="md" valign="top"> ) </td>
461 <td class="md" nowrap></td>
468 <table cellspacing=5 cellpadding=0 border=0>
476 Terminate a link to 'targethost' by calling the <a class="el" href="classircd__connector.html#a13">ircd_connector::CloseConnection</a> method.
481 <hr><h2>Member Data Documentation</h2>
482 <a name="o4" doxytag="connection::bytes_in"></a><p>
483 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
486 <table cellpadding="0" cellspacing="0" border="0">
488 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o4">connection::bytes_in</a>
493 <table cellspacing=5 cellpadding=0 border=0>
501 Stats counter for bytes inbound.
505 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>.
507 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
510 <a name="o5" doxytag="connection::bytes_out"></a><p>
511 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
514 <table cellpadding="0" cellspacing="0" border="0">
516 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o5">connection::bytes_out</a>
521 <table cellspacing=5 cellpadding=0 border=0>
529 Stats counter for bytes outbound.
533 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>.
535 Referenced by <a class="el" href="users_8cpp-source.html#l00242">userrec::FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
538 <a name="o6" doxytag="connection::cmds_in"></a><p>
539 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
542 <table cellpadding="0" cellspacing="0" border="0">
544 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o6">connection::cmds_in</a>
549 <table cellspacing=5 cellpadding=0 border=0>
557 Stats counter for commands inbound.
561 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>.
563 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
566 <a name="o7" doxytag="connection::cmds_out"></a><p>
567 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
570 <table cellpadding="0" cellspacing="0" border="0">
572 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o7">connection::cmds_out</a>
577 <table cellspacing=5 cellpadding=0 border=0>
585 Stats counter for commands outbound.
589 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>.
591 Referenced by <a class="el" href="users_8cpp-source.html#l00242">userrec::FlushWriteBuf()</a>, and <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
594 <a name="o18" doxytag="connection::connectors"></a><p>
595 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
598 <table cellpadding="0" cellspacing="0" border="0">
600 <td class="md" nowrap valign="top"> std::vector<<a class="el" href="classircd__connector.html">ircd_connector</a>> <a class="el" href="classconnection.html#o18">connection::connectors</a>
605 <table cellspacing=5 cellpadding=0 border=0>
613 With a serverrec, this is a list of all established server connections.
615 With a userrec this is unused.
617 Definition at line <a class="el" href="connection_8h-source.html#l00290">290</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
620 <a name="o0" doxytag="connection::fd"></a><p>
621 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
624 <table cellpadding="0" cellspacing="0" border="0">
626 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o0">connection::fd</a>
631 <table cellspacing=5 cellpadding=0 border=0>
639 File descriptor of the connection.
643 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>.
645 Referenced by <a class="el" href="modules_8cpp-source.html#l00966">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00699">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00528">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#l00680">Server::UserToPseudo()</a>. </td>
648 <a name="o8" doxytag="connection::haspassed"></a><p>
649 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
652 <table cellpadding="0" cellspacing="0" border="0">
654 <td class="md" nowrap valign="top"> bool <a class="el" href="classconnection.html#o8">connection::haspassed</a>
659 <table cellspacing=5 cellpadding=0 border=0>
667 True if server/user has authenticated, false if otherwise.
671 Definition at line <a class="el" href="connection_8h-source.html#l00247">247</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
673 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
676 <a name="o1" doxytag="connection::host"></a><p>
677 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
680 <table cellpadding="0" cellspacing="0" border="0">
682 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o1">connection::host</a>[256]
687 <table cellspacing=5 cellpadding=0 border=0>
695 Hostname of connection.
697 Not used if this is a serverrec
699 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>.
701 Referenced by <a class="el" href="users_8cpp-source.html#l00069">userrec::GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00699">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00680">Server::UserToPseudo()</a>. </td>
704 <a name="o14" doxytag="connection::idle_lastmsg"></a><p>
705 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
708 <table cellpadding="0" cellspacing="0" border="0">
710 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o14">connection::idle_lastmsg</a>
715 <table cellspacing=5 cellpadding=0 border=0>
723 Time that the connection last sent data, used to calculate idle time.
727 Definition at line <a class="el" href="connection_8h-source.html#l00273">273</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
729 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
732 <a name="o3" doxytag="connection::inbuf"></a><p>
733 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
736 <table cellpadding="0" cellspacing="0" border="0">
738 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o3">connection::inbuf</a>[MAXBUF]
743 <table cellspacing=5 cellpadding=0 border=0>
753 Only used for userrec
755 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>.
757 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
760 <a name="o16" doxytag="connection::internal_addr"></a><p>
761 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
764 <table cellpadding="0" cellspacing="0" border="0">
766 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o16">connection::internal_addr</a>[MAXBUF]
771 <table cellspacing=5 cellpadding=0 border=0>
779 Unused, will be removed in a future alpha/beta.
783 Definition at line <a class="el" href="connection_8h-source.html#l00281">281</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
786 <a name="o17" doxytag="connection::internal_port"></a><p>
787 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
790 <table cellpadding="0" cellspacing="0" border="0">
792 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o17">connection::internal_port</a>
797 <table cellspacing=5 cellpadding=0 border=0>
805 Unused, will be removed in a future alpha/beta.
809 Definition at line <a class="el" href="connection_8h-source.html#l00285">285</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
812 <a name="o2" doxytag="connection::ip"></a><p>
813 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
816 <table cellpadding="0" cellspacing="0" border="0">
818 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o2">connection::ip</a>[32]
823 <table cellspacing=5 cellpadding=0 border=0>
833 Reserved for future use.
835 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>.
837 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
840 <a name="o12" doxytag="connection::lastping"></a><p>
841 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
844 <table cellpadding="0" cellspacing="0" border="0">
846 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o12">connection::lastping</a>
851 <table cellspacing=5 cellpadding=0 border=0>
859 Time the connection was last pinged.
863 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>.
865 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>
868 <a name="o15" doxytag="connection::nping"></a><p>
869 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
872 <table cellpadding="0" cellspacing="0" border="0">
874 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o15">connection::nping</a>
879 <table cellspacing=5 cellpadding=0 border=0>
887 Used by PING checks with clients.
891 Definition at line <a class="el" href="connection_8h-source.html#l00277">277</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
893 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
896 <a name="o9" doxytag="connection::port"></a><p>
897 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
900 <table cellpadding="0" cellspacing="0" border="0">
902 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o9">connection::port</a>
907 <table cellspacing=5 cellpadding=0 border=0>
915 Port number For a userrec, this is the port they connected to the network on.
917 For a serverrec this is the current listening port of the serverrec object.
919 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>.
921 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
924 <a name="o10" doxytag="connection::registered"></a><p>
925 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
928 <table cellpadding="0" cellspacing="0" border="0">
930 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o10">connection::registered</a>
935 <table cellspacing=5 cellpadding=0 border=0>
943 Used by userrec to indicate the registration status of the connection.
947 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>.
949 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
952 <a name="o13" doxytag="connection::signon"></a><p>
953 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
956 <table cellpadding="0" cellspacing="0" border="0">
958 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o13">connection::signon</a>
963 <table cellspacing=5 cellpadding=0 border=0>
971 Time the connection was created, set in the constructor.
975 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>.
977 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>
980 <a name="o11" doxytag="connection::state"></a><p>
981 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
984 <table cellpadding="0" cellspacing="0" border="0">
986 <td class="md" nowrap valign="top"> short int <a class="el" href="classconnection.html#o11">connection::state</a>
991 <table cellspacing=5 cellpadding=0 border=0>
999 Reserved for future use.
1003 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>. </td>
1006 <hr>The documentation for this class was generated from the following file:<ul>
1007 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
1008 <hr size="1"><address style="align: right;"><small>Generated on Thu May 12 02:25:20 2005 for InspIRCd by
1009 <a href="http://www.doxygen.org/index.html">
1010 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
1011 </a>1.3.3 </small></address>