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>, 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 class="memItemLeft" nowrap align=right valign=top>long </td><td class="memItemRight" valign=bottom><a class="el" href="classconnection.html#a9">GenKey</a> ()</td></tr>
49 <tr><td class="mdescLeft"> </td><td class="mdescRight">This function is deprecated and may be removed in a later alpha/beta. </em> <a href="#a9"></a><em><br><br></td></tr>
50 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
51 <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>
53 <tr><td class="mdescLeft"> </td><td class="mdescRight">File descriptor of the connection. </em> <a href="#o0"></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#o1">host</a> [256]</td></tr>
56 <tr><td class="mdescLeft"> </td><td class="mdescRight">Hostname of connection. </em> <a href="#o1"></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#o2">ip</a> [32]</td></tr>
59 <tr><td class="mdescLeft"> </td><td class="mdescRight">IP of connection. </em> <a href="#o2"></a><em><br><br></td></tr>
60 <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>
62 <tr><td class="mdescLeft"> </td><td class="mdescRight">Inbuf of connection. </em> <a href="#o3"></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#o4">bytes_in</a></td></tr>
65 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for bytes inbound. </em> <a href="#o4"></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#o5">bytes_out</a></td></tr>
68 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for bytes outbound. </em> <a href="#o5"></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#o6">cmds_in</a></td></tr>
71 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for commands inbound. </em> <a href="#o6"></a><em><br><br></td></tr>
72 <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>
74 <tr><td class="mdescLeft"> </td><td class="mdescRight">Stats counter for commands outbound. </em> <a href="#o7"></a><em><br><br></td></tr>
75 <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>
77 <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>
78 <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>
80 <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>
81 <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>
83 <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>
84 <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>
86 <tr><td class="mdescLeft"> </td><td class="mdescRight">Reserved for future use. </em> <a href="#o11"></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#o12">lastping</a></td></tr>
89 <tr><td class="mdescLeft"> </td><td class="mdescRight">Time the connection was last pinged. </em> <a href="#o12"></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#o13">signon</a></td></tr>
92 <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>
93 <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>
95 <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>
96 <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>
98 <tr><td class="mdescLeft"> </td><td class="mdescRight">Used by PING checks with clients. </em> <a href="#o15"></a><em><br><br></td></tr>
99 <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>
101 <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>
102 <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>
104 <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>
105 <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>
107 <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>
109 <hr><a name="_details"></a><h2>Detailed Description</h2>
110 Please note: classes serverrec and userrec both inherit from class connection.
114 Definition at line <a class="el" href="connection_8h-source.html#l00173">173</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.<hr><h2>Constructor & Destructor Documentation</h2>
115 <a name="a0" doxytag="connection::connection"></a><p>
116 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
119 <table cellpadding="0" cellspacing="0" border="0">
121 <td class="md" nowrap valign="top"> connection::connection </td>
122 <td class="md" valign="top">( </td>
123 <td class="mdname1" valign="top" nowrap> </td>
124 <td class="md" valign="top"> ) </td>
125 <td class="md" nowrap></td>
132 <table cellspacing=5 cellpadding=0 border=0>
145 <hr><h2>Member Function Documentation</h2>
146 <a name="a8" doxytag="connection::AddIncoming"></a><p>
147 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
150 <table cellpadding="0" cellspacing="0" border="0">
152 <td class="md" nowrap valign="top"> bool connection::AddIncoming </td>
153 <td class="md" valign="top">( </td>
154 <td class="md" nowrap valign="top">int </td>
155 <td class="mdname" nowrap> <em>fd</em>, </td>
160 <td class="md" nowrap>char * </td>
161 <td class="mdname" nowrap> <em>targethost</em>, </td>
166 <td class="md" nowrap>int </td>
167 <td class="mdname" nowrap> <em>sourceport</em></td>
171 <td class="md">) </td>
172 <td class="md" colspan="2"></td>
179 <table cellspacing=5 cellpadding=0 border=0>
187 Add an incoming connection to the connection pool.
189 (reserved for core use) </td>
192 <a name="a2" doxytag="connection::BeginLink"></a><p>
193 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
196 <table cellpadding="0" cellspacing="0" border="0">
198 <td class="md" nowrap valign="top"> bool connection::BeginLink </td>
199 <td class="md" valign="top">( </td>
200 <td class="md" nowrap valign="top">char * </td>
201 <td class="mdname" nowrap> <em>targethost</em>, </td>
206 <td class="md" nowrap>int </td>
207 <td class="mdname" nowrap> <em>port</em>, </td>
212 <td class="md" nowrap>char * </td>
213 <td class="mdname" nowrap> <em>password</em>, </td>
218 <td class="md" nowrap>char * </td>
219 <td class="mdname" nowrap> <em>servername</em>, </td>
224 <td class="md" nowrap>int </td>
225 <td class="mdname" nowrap> <em>myport</em></td>
229 <td class="md">) </td>
230 <td class="md" colspan="2"></td>
237 <table cellspacing=5 cellpadding=0 border=0>
245 Begin an outbound link to another ircd at targethost.
250 <a name="a1" doxytag="connection::CreateListener"></a><p>
251 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
254 <table cellpadding="0" cellspacing="0" border="0">
256 <td class="md" nowrap valign="top"> bool connection::CreateListener </td>
257 <td class="md" valign="top">( </td>
258 <td class="md" nowrap valign="top">char * </td>
259 <td class="mdname" nowrap> <em>host</em>, </td>
264 <td class="md" nowrap>int </td>
265 <td class="mdname" nowrap> <em>p</em></td>
269 <td class="md">) </td>
270 <td class="md" colspan="2"></td>
277 <table cellspacing=5 cellpadding=0 border=0>
285 Create a listening socket on 'host' using port number 'p'.
290 <a name="a7" doxytag="connection::FindHost"></a><p>
291 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
294 <table cellpadding="0" cellspacing="0" border="0">
296 <td class="md" nowrap valign="top"> <a class="el" href="classircd__connector.html">ircd_connector</a>* connection::FindHost </td>
297 <td class="md" valign="top">( </td>
298 <td class="md" nowrap valign="top">std::string </td>
299 <td class="mdname1" valign="top" nowrap> <em>host</em> </td>
300 <td class="md" valign="top"> ) </td>
301 <td class="md" nowrap></td>
308 <table cellspacing=5 cellpadding=0 border=0>
316 Find the <a class="el" href="classircd__connector.html">ircd_connector</a> oject related to a certain servername given in 'host'.
321 <a name="a9" doxytag="connection::GenKey"></a><p>
322 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
325 <table cellpadding="0" cellspacing="0" border="0">
327 <td class="md" nowrap valign="top"> long connection::GenKey </td>
328 <td class="md" valign="top">( </td>
329 <td class="mdname1" valign="top" nowrap> </td>
330 <td class="md" valign="top"> ) </td>
331 <td class="md" nowrap></td>
338 <table cellspacing=5 cellpadding=0 border=0>
346 This function is deprecated and may be removed in a later alpha/beta.
351 <a name="a3" doxytag="connection::MeshCookie"></a><p>
352 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
355 <table cellpadding="0" cellspacing="0" border="0">
357 <td class="md" nowrap valign="top"> bool connection::MeshCookie </td>
358 <td class="md" valign="top">( </td>
359 <td class="md" nowrap valign="top">char * </td>
360 <td class="mdname" nowrap> <em>targethost</em>, </td>
365 <td class="md" nowrap>int </td>
366 <td class="mdname" nowrap> <em>port</em>, </td>
371 <td class="md" nowrap>long </td>
372 <td class="mdname" nowrap> <em>cookie</em>, </td>
377 <td class="md" nowrap>char * </td>
378 <td class="mdname" nowrap> <em>servername</em></td>
382 <td class="md">) </td>
383 <td class="md" colspan="2"></td>
390 <table cellspacing=5 cellpadding=0 border=0>
398 Begin an outbound mesh link to another ircd on a network you are already an authenticated member of.
403 <a name="a6" doxytag="connection::RecvPacket"></a><p>
404 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
407 <table cellpadding="0" cellspacing="0" border="0">
409 <td class="md" nowrap valign="top"> bool connection::RecvPacket </td>
410 <td class="md" valign="top">( </td>
411 <td class="md" nowrap valign="top">std::deque< std::string > & </td>
412 <td class="mdname" nowrap> <em>messages</em>, </td>
417 <td class="md" nowrap>char * </td>
418 <td class="mdname" nowrap> <em>host</em></td>
422 <td class="md">) </td>
423 <td class="md" colspan="2"></td>
430 <table cellspacing=5 cellpadding=0 border=0>
438 Returns the next available packet and returns true if data is available.
440 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>
443 <a name="a5" doxytag="connection::SendPacket"></a><p>
444 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
447 <table cellpadding="0" cellspacing="0" border="0">
449 <td class="md" nowrap valign="top"> bool connection::SendPacket </td>
450 <td class="md" valign="top">( </td>
451 <td class="md" nowrap valign="top">char * </td>
452 <td class="mdname" nowrap> <em>message</em>, </td>
457 <td class="md" nowrap>const char * </td>
458 <td class="mdname" nowrap> <em>host</em></td>
462 <td class="md">) </td>
463 <td class="md" colspan="2"></td>
470 <table cellspacing=5 cellpadding=0 border=0>
478 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.
483 <a name="a4" doxytag="connection::TerminateLink"></a><p>
484 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
487 <table cellpadding="0" cellspacing="0" border="0">
489 <td class="md" nowrap valign="top"> void connection::TerminateLink </td>
490 <td class="md" valign="top">( </td>
491 <td class="md" nowrap valign="top">char * </td>
492 <td class="mdname1" valign="top" nowrap> <em>targethost</em> </td>
493 <td class="md" valign="top"> ) </td>
494 <td class="md" nowrap></td>
501 <table cellspacing=5 cellpadding=0 border=0>
509 Terminate a link to 'targethost' by calling the <a class="el" href="classircd__connector.html#a13">ircd_connector::CloseConnection</a> method.
514 <hr><h2>Member Data Documentation</h2>
515 <a name="o4" doxytag="connection::bytes_in"></a><p>
516 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
519 <table cellpadding="0" cellspacing="0" border="0">
521 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o4">connection::bytes_in</a>
526 <table cellspacing=5 cellpadding=0 border=0>
534 Stats counter for bytes inbound.
538 Definition at line <a class="el" href="connection_8h-source.html#l00194">194</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
540 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
543 <a name="o5" doxytag="connection::bytes_out"></a><p>
544 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
547 <table cellpadding="0" cellspacing="0" border="0">
549 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o5">connection::bytes_out</a>
554 <table cellspacing=5 cellpadding=0 border=0>
562 Stats counter for bytes outbound.
566 Definition at line <a class="el" href="connection_8h-source.html#l00198">198</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
568 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
571 <a name="o6" doxytag="connection::cmds_in"></a><p>
572 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
575 <table cellpadding="0" cellspacing="0" border="0">
577 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o6">connection::cmds_in</a>
582 <table cellspacing=5 cellpadding=0 border=0>
590 Stats counter for commands inbound.
594 Definition at line <a class="el" href="connection_8h-source.html#l00202">202</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
596 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
599 <a name="o7" doxytag="connection::cmds_out"></a><p>
600 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
603 <table cellpadding="0" cellspacing="0" border="0">
605 <td class="md" nowrap valign="top"> long <a class="el" href="classconnection.html#o7">connection::cmds_out</a>
610 <table cellspacing=5 cellpadding=0 border=0>
618 Stats counter for commands outbound.
622 Definition at line <a class="el" href="connection_8h-source.html#l00206">206</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
624 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
627 <a name="o18" doxytag="connection::connectors"></a><p>
628 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
631 <table cellpadding="0" cellspacing="0" border="0">
633 <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>
638 <table cellspacing=5 cellpadding=0 border=0>
646 With a serverrec, this is a list of all established server connections.
648 With a userrec this is unused.
650 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>. </td>
653 <a name="o0" doxytag="connection::fd"></a><p>
654 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
657 <table cellpadding="0" cellspacing="0" border="0">
659 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o0">connection::fd</a>
664 <table cellspacing=5 cellpadding=0 border=0>
672 File descriptor of the connection.
676 Definition at line <a class="el" href="connection_8h-source.html#l00178">178</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
678 Referenced by <a class="el" href="modules_8cpp-source.html#l00772">ConfigReader::DumpErrors()</a>, <a class="el" href="modules_8cpp-source.html#l00589">Server::PseudoToUser()</a>, <a class="el" href="modules_8cpp-source.html#l00446">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#l00580">Server::UserToPseudo()</a>. </td>
681 <a name="o8" doxytag="connection::haspassed"></a><p>
682 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
685 <table cellpadding="0" cellspacing="0" border="0">
687 <td class="md" nowrap valign="top"> bool <a class="el" href="classconnection.html#o8">connection::haspassed</a>
692 <table cellspacing=5 cellpadding=0 border=0>
700 True if server/user has authenticated, false if otherwise.
704 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>.
706 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
709 <a name="o1" doxytag="connection::host"></a><p>
710 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
713 <table cellpadding="0" cellspacing="0" border="0">
715 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o1">connection::host</a>[256]
720 <table cellspacing=5 cellpadding=0 border=0>
728 Hostname of connection.
730 Not used if this is a serverrec
732 Definition at line <a class="el" href="connection_8h-source.html#l00182">182</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
734 Referenced by <a class="el" href="users_8cpp-source.html#l00065">userrec::GetFullRealHost()</a>, <a class="el" href="modules_8cpp-source.html#l00589">Server::PseudoToUser()</a>, <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>, and <a class="el" href="modules_8cpp-source.html#l00580">Server::UserToPseudo()</a>. </td>
737 <a name="o14" doxytag="connection::idle_lastmsg"></a><p>
738 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
741 <table cellpadding="0" cellspacing="0" border="0">
743 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o14">connection::idle_lastmsg</a>
748 <table cellspacing=5 cellpadding=0 border=0>
756 Time that the connection last sent data, used to calculate idle time.
760 Definition at line <a class="el" href="connection_8h-source.html#l00236">236</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
762 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
765 <a name="o3" doxytag="connection::inbuf"></a><p>
766 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
769 <table cellpadding="0" cellspacing="0" border="0">
771 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o3">connection::inbuf</a>[MAXBUF]
776 <table cellspacing=5 cellpadding=0 border=0>
786 Only used for userrec
788 Definition at line <a class="el" href="connection_8h-source.html#l00190">190</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
790 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
793 <a name="o16" doxytag="connection::internal_addr"></a><p>
794 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
797 <table cellpadding="0" cellspacing="0" border="0">
799 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o16">connection::internal_addr</a>[MAXBUF]
804 <table cellspacing=5 cellpadding=0 border=0>
812 Unused, will be removed in a future alpha/beta.
816 Definition at line <a class="el" href="connection_8h-source.html#l00244">244</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
819 <a name="o17" doxytag="connection::internal_port"></a><p>
820 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
823 <table cellpadding="0" cellspacing="0" border="0">
825 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o17">connection::internal_port</a>
830 <table cellspacing=5 cellpadding=0 border=0>
838 Unused, will be removed in a future alpha/beta.
842 Definition at line <a class="el" href="connection_8h-source.html#l00248">248</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
845 <a name="o2" doxytag="connection::ip"></a><p>
846 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
849 <table cellpadding="0" cellspacing="0" border="0">
851 <td class="md" nowrap valign="top"> char <a class="el" href="classconnection.html#o2">connection::ip</a>[32]
856 <table cellspacing=5 cellpadding=0 border=0>
866 Reserved for future use.
868 Definition at line <a class="el" href="connection_8h-source.html#l00186">186</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
870 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
873 <a name="o12" doxytag="connection::lastping"></a><p>
874 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
877 <table cellpadding="0" cellspacing="0" border="0">
879 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o12">connection::lastping</a>
884 <table cellspacing=5 cellpadding=0 border=0>
892 Time the connection was last pinged.
896 Definition at line <a class="el" href="connection_8h-source.html#l00228">228</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
898 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>
901 <a name="o15" doxytag="connection::nping"></a><p>
902 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
905 <table cellpadding="0" cellspacing="0" border="0">
907 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o15">connection::nping</a>
912 <table cellspacing=5 cellpadding=0 border=0>
920 Used by PING checks with clients.
924 Definition at line <a class="el" href="connection_8h-source.html#l00240">240</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
926 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
929 <a name="o9" doxytag="connection::port"></a><p>
930 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
933 <table cellpadding="0" cellspacing="0" border="0">
935 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o9">connection::port</a>
940 <table cellspacing=5 cellpadding=0 border=0>
948 Port number For a userrec, this is the port they connected to the network on.
950 For a serverrec this is the current listening port of the serverrec object.
952 Definition at line <a class="el" href="connection_8h-source.html#l00216">216</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
954 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
957 <a name="o10" doxytag="connection::registered"></a><p>
958 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
961 <table cellpadding="0" cellspacing="0" border="0">
963 <td class="md" nowrap valign="top"> int <a class="el" href="classconnection.html#o10">connection::registered</a>
968 <table cellspacing=5 cellpadding=0 border=0>
976 Used by userrec to indicate the registration status of the connection.
980 Definition at line <a class="el" href="connection_8h-source.html#l00220">220</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
982 Referenced by <a class="el" href="users_8cpp-source.html#l00028">userrec::userrec()</a>. </td>
985 <a name="o13" doxytag="connection::signon"></a><p>
986 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
989 <table cellpadding="0" cellspacing="0" border="0">
991 <td class="md" nowrap valign="top"> time_t <a class="el" href="classconnection.html#o13">connection::signon</a>
996 <table cellspacing=5 cellpadding=0 border=0>
1004 Time the connection was created, set in the constructor.
1008 Definition at line <a class="el" href="connection_8h-source.html#l00232">232</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.
1010 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>
1013 <a name="o11" doxytag="connection::state"></a><p>
1014 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
1017 <table cellpadding="0" cellspacing="0" border="0">
1019 <td class="md" nowrap valign="top"> short int <a class="el" href="classconnection.html#o11">connection::state</a>
1024 <table cellspacing=5 cellpadding=0 border=0>
1032 Reserved for future use.
1036 Definition at line <a class="el" href="connection_8h-source.html#l00224">224</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
1039 <hr>The documentation for this class was generated from the following file:<ul>
1040 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
1041 <hr size="1"><address style="align: right;"><small>Generated on Wed Apr 13 13:07:03 2005 for InspIRCd by
1042 <a href="http://www.doxygen.org/index.html">
1043 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
1044 </a>1.3.3 </small></address>