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: ircd_connector 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>ircd_connector Class Reference</h1>Each connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds.
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 <a href="classircd__connector-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0>
17 <tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
18 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a0">MakeOutboundConnection</a> (char *newhost, int newport)</td></tr>
20 <tr><td class="mdescLeft"> </td><td class="mdescRight">Create an outbound connection to a listening socket. </em> <a href="#a0"></a><em><br><br></td></tr>
21 <tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a1">GetServerName</a> ()</td></tr>
23 <tr><td class="mdescLeft"> </td><td class="mdescRight">Return the servername on this established connection. </em> <a href="#a1"></a><em><br><br></td></tr>
24 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a2">SetServerName</a> (std::string serv)</td></tr>
26 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the server name of this connection. </em> <a href="#a2"></a><em><br><br></td></tr>
27 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a3">GetDescriptor</a> ()</td></tr>
29 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the file descriptor associated with this connection. </em> <a href="#a3"></a><em><br><br></td></tr>
30 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a4">SetDescriptor</a> (int <a class="el" href="classircd__connector.html#r1">fd</a>)</td></tr>
32 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the file descriptor for this connection. </em> <a href="#a4"></a><em><br><br></td></tr>
33 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a5">GetState</a> ()</td></tr>
35 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the state flags for this connection. </em> <a href="#a5"></a><em><br><br></td></tr>
36 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a6">SetState</a> (int <a class="el" href="classircd__connector.html#r4">state</a>)</td></tr>
38 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the state flags for this connection. </em> <a href="#a6"></a><em><br><br></td></tr>
39 <tr><td class="memItemLeft" nowrap align=right valign=top>char * </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a7">GetServerIP</a> ()</td></tr>
41 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the ip address (not servername) associated with this connection. </em> <a href="#a7"></a><em><br><br></td></tr>
42 <tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a8">GetDescription</a> ()</td></tr>
44 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the server description of this connection. </em> <a href="#a8"></a><em><br><br></td></tr>
45 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a9">SetDescription</a> (std::string desc)</td></tr>
47 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the server description of this connection. </em> <a href="#a9"></a><em><br><br></td></tr>
48 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a10">GetServerPort</a> ()</td></tr>
50 <tr><td class="mdescLeft"> </td><td class="mdescRight">Get the port number being used for this connection If the connection is outbound this will be the remote port otherwise it will be the local port, so it can always be gautanteed as open at the address given in <a class="el" href="classircd__connector.html#a7">GetServerIP()</a>. </em> <a href="#a10"></a><em><br><br></td></tr>
51 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a11">SetServerPort</a> (int p)</td></tr>
53 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set the port used by this connection. </em> <a href="#a11"></a><em><br><br></td></tr>
54 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a12">SetHostAndPort</a> (char *newhost, int newport)</td></tr>
56 <tr><td class="mdescLeft"> </td><td class="mdescRight">Set both the host and the port in one operation for this connection. </em> <a href="#a12"></a><em><br><br></td></tr>
57 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a13">CloseConnection</a> ()</td></tr>
59 <tr><td class="mdescLeft"> </td><td class="mdescRight">Close the connection by calling close() on its file descriptor This function call updates no other data. </em> <a href="#a13"></a><em><br><br></td></tr>
60 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a14">AddBuffer</a> (std::string a)</td></tr>
62 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a15">BufferIsComplete</a> ()</td></tr>
64 <tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a16">ClearBuffer</a> ()</td></tr>
66 <tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#a17">GetBuffer</a> ()</td></tr>
68 <tr><td colspan=2><br><h2>Public Attributes</h2></td></tr>
69 <tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#o0">ircdbuffer</a></td></tr>
71 <tr><td class="mdescLeft"> </td><td class="mdescRight">IRCD Buffer for input characters, holds one line. </em> <a href="#o0"></a><em><br><br></td></tr>
72 <tr><td class="memItemLeft" nowrap align=right valign=top>char </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#o1">host</a> [MAXBUF]</td></tr>
74 <tr><td class="mdescLeft"> </td><td class="mdescRight">When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. </em> <a href="#o1"></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="classircd__connector.html#o2">port</a></td></tr>
77 <tr><td class="mdescLeft"> </td><td class="mdescRight">When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference. </em> <a href="#o2"></a><em><br><br></td></tr>
78 <tr><td class="memItemLeft" nowrap align=right valign=top>std::vector< std::string > </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#o3">routes</a></td></tr>
80 <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classServer.html">Server</a> names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B. </em> <a href="#o3"></a><em><br><br></td></tr>
81 <tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr>
82 <tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#d0">SetHostAddress</a> (char *<a class="el" href="classircd__connector.html#o1">host</a>, int <a class="el" href="classircd__connector.html#o2">port</a>)</td></tr>
84 <tr><td class="mdescLeft"> </td><td class="mdescRight">PRIVATE function to set the host address and port to connect to. </em> <a href="#d0"></a><em><br><br></td></tr>
85 <tr><td colspan=2><br><h2>Private Attributes</h2></td></tr>
86 <tr><td class="memItemLeft" nowrap align=right valign=top>sockaddr_in </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#r0">addr</a></td></tr>
88 <tr><td class="mdescLeft"> </td><td class="mdescRight">Sockaddr of the outbound ip and port. </em> <a href="#r0"></a><em><br><br></td></tr>
89 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#r1">fd</a></td></tr>
91 <tr><td class="mdescLeft"> </td><td class="mdescRight">File descriptor of the connection. </em> <a href="#r1"></a><em><br><br></td></tr>
92 <tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#r2">servername</a></td></tr>
94 <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classServer.html">Server</a> name. </em> <a href="#r2"></a><em><br><br></td></tr>
95 <tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#r3">description</a></td></tr>
97 <tr><td class="mdescLeft"> </td><td class="mdescRight"><a class="el" href="classServer.html">Server</a> 'GECOS'. </em> <a href="#r3"></a><em><br><br></td></tr>
98 <tr><td class="memItemLeft" nowrap align=right valign=top>int </td><td class="memItemRight" valign=bottom><a class="el" href="classircd__connector.html#r4">state</a></td></tr>
100 <tr><td class="mdescLeft"> </td><td class="mdescRight">State. </em> <a href="#r4"></a><em><br><br></td></tr>
102 <hr><a name="_details"></a><h2>Detailed Description</h2>
103 Each connection has one or more of these each represents ONE outbound connection to another ircd so each inbound has multiple outbounds.
105 A listening socket that accepts server type connections is represented by one class serverrec. Class serverrec will instantiate several objects of type ircd_connector to represent each established connection, inbound or outbound. So, to determine all linked servers you must walk through all the serverrecs that the core defines, and in each one iterate through until you find connection(s) relating to the server you want information on. The core and module API provide functions for this.
109 Definition at line <a class="el" href="connection_8h-source.html#l00054">54</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>.<hr><h2>Member Function Documentation</h2>
110 <a name="a14" doxytag="ircd_connector::AddBuffer"></a><p>
111 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
114 <table cellpadding="0" cellspacing="0" border="0">
116 <td class="md" nowrap valign="top"> void ircd_connector::AddBuffer </td>
117 <td class="md" valign="top">( </td>
118 <td class="md" nowrap valign="top">std::string </td>
119 <td class="mdname1" valign="top" nowrap> <em>a</em> </td>
120 <td class="md" valign="top"> ) </td>
121 <td class="md" nowrap></td>
128 <table cellspacing=5 cellpadding=0 border=0>
139 <a name="a15" doxytag="ircd_connector::BufferIsComplete"></a><p>
140 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
143 <table cellpadding="0" cellspacing="0" border="0">
145 <td class="md" nowrap valign="top"> bool ircd_connector::BufferIsComplete </td>
146 <td class="md" valign="top">( </td>
147 <td class="mdname1" valign="top" nowrap> </td>
148 <td class="md" valign="top"> ) </td>
149 <td class="md" nowrap></td>
156 <table cellspacing=5 cellpadding=0 border=0>
167 <a name="a16" doxytag="ircd_connector::ClearBuffer"></a><p>
168 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
171 <table cellpadding="0" cellspacing="0" border="0">
173 <td class="md" nowrap valign="top"> void ircd_connector::ClearBuffer </td>
174 <td class="md" valign="top">( </td>
175 <td class="mdname1" valign="top" nowrap> </td>
176 <td class="md" valign="top"> ) </td>
177 <td class="md" nowrap></td>
184 <table cellspacing=5 cellpadding=0 border=0>
195 <a name="a13" doxytag="ircd_connector::CloseConnection"></a><p>
196 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
199 <table cellpadding="0" cellspacing="0" border="0">
201 <td class="md" nowrap valign="top"> void ircd_connector::CloseConnection </td>
202 <td class="md" valign="top">( </td>
203 <td class="mdname1" valign="top" nowrap> </td>
204 <td class="md" valign="top"> ) </td>
205 <td class="md" nowrap></td>
212 <table cellspacing=5 cellpadding=0 border=0>
220 Close the connection by calling close() on its file descriptor This function call updates no other data.
225 <a name="a17" doxytag="ircd_connector::GetBuffer"></a><p>
226 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
229 <table cellpadding="0" cellspacing="0" border="0">
231 <td class="md" nowrap valign="top"> std::string ircd_connector::GetBuffer </td>
232 <td class="md" valign="top">( </td>
233 <td class="mdname1" valign="top" nowrap> </td>
234 <td class="md" valign="top"> ) </td>
235 <td class="md" nowrap></td>
242 <table cellspacing=5 cellpadding=0 border=0>
253 <a name="a8" doxytag="ircd_connector::GetDescription"></a><p>
254 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
257 <table cellpadding="0" cellspacing="0" border="0">
259 <td class="md" nowrap valign="top"> std::string ircd_connector::GetDescription </td>
260 <td class="md" valign="top">( </td>
261 <td class="mdname1" valign="top" nowrap> </td>
262 <td class="md" valign="top"> ) </td>
263 <td class="md" nowrap></td>
270 <table cellspacing=5 cellpadding=0 border=0>
278 Get the server description of this connection.
283 <a name="a3" doxytag="ircd_connector::GetDescriptor"></a><p>
284 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
287 <table cellpadding="0" cellspacing="0" border="0">
289 <td class="md" nowrap valign="top"> int ircd_connector::GetDescriptor </td>
290 <td class="md" valign="top">( </td>
291 <td class="mdname1" valign="top" nowrap> </td>
292 <td class="md" valign="top"> ) </td>
293 <td class="md" nowrap></td>
300 <table cellspacing=5 cellpadding=0 border=0>
308 Get the file descriptor associated with this connection.
313 <a name="a7" doxytag="ircd_connector::GetServerIP"></a><p>
314 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
317 <table cellpadding="0" cellspacing="0" border="0">
319 <td class="md" nowrap valign="top"> char* ircd_connector::GetServerIP </td>
320 <td class="md" valign="top">( </td>
321 <td class="mdname1" valign="top" nowrap> </td>
322 <td class="md" valign="top"> ) </td>
323 <td class="md" nowrap></td>
330 <table cellspacing=5 cellpadding=0 border=0>
338 Get the ip address (not servername) associated with this connection.
343 <a name="a1" doxytag="ircd_connector::GetServerName"></a><p>
344 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
347 <table cellpadding="0" cellspacing="0" border="0">
349 <td class="md" nowrap valign="top"> std::string ircd_connector::GetServerName </td>
350 <td class="md" valign="top">( </td>
351 <td class="mdname1" valign="top" nowrap> </td>
352 <td class="md" valign="top"> ) </td>
353 <td class="md" nowrap></td>
360 <table cellspacing=5 cellpadding=0 border=0>
368 Return the servername on this established connection.
373 <a name="a10" doxytag="ircd_connector::GetServerPort"></a><p>
374 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
377 <table cellpadding="0" cellspacing="0" border="0">
379 <td class="md" nowrap valign="top"> int ircd_connector::GetServerPort </td>
380 <td class="md" valign="top">( </td>
381 <td class="mdname1" valign="top" nowrap> </td>
382 <td class="md" valign="top"> ) </td>
383 <td class="md" nowrap></td>
390 <table cellspacing=5 cellpadding=0 border=0>
398 Get the port number being used for this connection If the connection is outbound this will be the remote port otherwise it will be the local port, so it can always be gautanteed as open at the address given in <a class="el" href="classircd__connector.html#a7">GetServerIP()</a>.
403 <a name="a5" doxytag="ircd_connector::GetState"></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"> int ircd_connector::GetState </td>
410 <td class="md" valign="top">( </td>
411 <td class="mdname1" valign="top" nowrap> </td>
412 <td class="md" valign="top"> ) </td>
413 <td class="md" nowrap></td>
420 <table cellspacing=5 cellpadding=0 border=0>
428 Get the state flags for this connection.
433 <a name="a0" doxytag="ircd_connector::MakeOutboundConnection"></a><p>
434 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
437 <table cellpadding="0" cellspacing="0" border="0">
439 <td class="md" nowrap valign="top"> bool ircd_connector::MakeOutboundConnection </td>
440 <td class="md" valign="top">( </td>
441 <td class="md" nowrap valign="top">char * </td>
442 <td class="mdname" nowrap> <em>newhost</em>, </td>
447 <td class="md" nowrap>int </td>
448 <td class="mdname" nowrap> <em>newport</em></td>
452 <td class="md">) </td>
453 <td class="md" colspan="2"></td>
460 <table cellspacing=5 cellpadding=0 border=0>
468 Create an outbound connection to a listening socket.
473 <a name="a9" doxytag="ircd_connector::SetDescription"></a><p>
474 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
477 <table cellpadding="0" cellspacing="0" border="0">
479 <td class="md" nowrap valign="top"> void ircd_connector::SetDescription </td>
480 <td class="md" valign="top">( </td>
481 <td class="md" nowrap valign="top">std::string </td>
482 <td class="mdname1" valign="top" nowrap> <em>desc</em> </td>
483 <td class="md" valign="top"> ) </td>
484 <td class="md" nowrap></td>
491 <table cellspacing=5 cellpadding=0 border=0>
499 Set the server description of this connection.
504 <a name="a4" doxytag="ircd_connector::SetDescriptor"></a><p>
505 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
508 <table cellpadding="0" cellspacing="0" border="0">
510 <td class="md" nowrap valign="top"> void ircd_connector::SetDescriptor </td>
511 <td class="md" valign="top">( </td>
512 <td class="md" nowrap valign="top">int </td>
513 <td class="mdname1" valign="top" nowrap> <em>fd</em> </td>
514 <td class="md" valign="top"> ) </td>
515 <td class="md" nowrap></td>
522 <table cellspacing=5 cellpadding=0 border=0>
530 Set the file descriptor for this connection.
535 <a name="d0" doxytag="ircd_connector::SetHostAddress"></a><p>
536 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
539 <table cellpadding="0" cellspacing="0" border="0">
541 <td class="md" nowrap valign="top"> bool ircd_connector::SetHostAddress </td>
542 <td class="md" valign="top">( </td>
543 <td class="md" nowrap valign="top">char * </td>
544 <td class="mdname" nowrap> <em>host</em>, </td>
549 <td class="md" nowrap>int </td>
550 <td class="mdname" nowrap> <em>port</em></td>
554 <td class="md">) </td>
555 <td class="md" colspan="2"><code> [private]</code></td>
562 <table cellspacing=5 cellpadding=0 border=0>
570 PRIVATE function to set the host address and port to connect to.
575 <a name="a12" doxytag="ircd_connector::SetHostAndPort"></a><p>
576 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
579 <table cellpadding="0" cellspacing="0" border="0">
581 <td class="md" nowrap valign="top"> bool ircd_connector::SetHostAndPort </td>
582 <td class="md" valign="top">( </td>
583 <td class="md" nowrap valign="top">char * </td>
584 <td class="mdname" nowrap> <em>newhost</em>, </td>
589 <td class="md" nowrap>int </td>
590 <td class="mdname" nowrap> <em>newport</em></td>
594 <td class="md">) </td>
595 <td class="md" colspan="2"></td>
602 <table cellspacing=5 cellpadding=0 border=0>
610 Set both the host and the port in one operation for this connection.
615 <a name="a2" doxytag="ircd_connector::SetServerName"></a><p>
616 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
619 <table cellpadding="0" cellspacing="0" border="0">
621 <td class="md" nowrap valign="top"> void ircd_connector::SetServerName </td>
622 <td class="md" valign="top">( </td>
623 <td class="md" nowrap valign="top">std::string </td>
624 <td class="mdname1" valign="top" nowrap> <em>serv</em> </td>
625 <td class="md" valign="top"> ) </td>
626 <td class="md" nowrap></td>
633 <table cellspacing=5 cellpadding=0 border=0>
641 Set the server name of this connection.
646 <a name="a11" doxytag="ircd_connector::SetServerPort"></a><p>
647 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
650 <table cellpadding="0" cellspacing="0" border="0">
652 <td class="md" nowrap valign="top"> void ircd_connector::SetServerPort </td>
653 <td class="md" valign="top">( </td>
654 <td class="md" nowrap valign="top">int </td>
655 <td class="mdname1" valign="top" nowrap> <em>p</em> </td>
656 <td class="md" valign="top"> ) </td>
657 <td class="md" nowrap></td>
664 <table cellspacing=5 cellpadding=0 border=0>
672 Set the port used by this connection.
677 <a name="a6" doxytag="ircd_connector::SetState"></a><p>
678 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
681 <table cellpadding="0" cellspacing="0" border="0">
683 <td class="md" nowrap valign="top"> void ircd_connector::SetState </td>
684 <td class="md" valign="top">( </td>
685 <td class="md" nowrap valign="top">int </td>
686 <td class="mdname1" valign="top" nowrap> <em>state</em> </td>
687 <td class="md" valign="top"> ) </td>
688 <td class="md" nowrap></td>
695 <table cellspacing=5 cellpadding=0 border=0>
703 Set the state flags for this connection.
708 <hr><h2>Member Data Documentation</h2>
709 <a name="r0" doxytag="ircd_connector::addr"></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"> sockaddr_in <a class="el" href="classircd__connector.html#r0">ircd_connector::addr</a><code> [private]</code>
720 <table cellspacing=5 cellpadding=0 border=0>
728 Sockaddr of the outbound ip and port.
732 Definition at line <a class="el" href="connection_8h-source.html#l00059">59</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
735 <a name="r3" doxytag="ircd_connector::description"></a><p>
736 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
739 <table cellpadding="0" cellspacing="0" border="0">
741 <td class="md" nowrap valign="top"> std::string <a class="el" href="classircd__connector.html#r3">ircd_connector::description</a><code> [private]</code>
746 <table cellspacing=5 cellpadding=0 border=0>
754 <a class="el" href="classServer.html">Server</a> 'GECOS'.
758 Definition at line <a class="el" href="connection_8h-source.html#l00071">71</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
761 <a name="r1" doxytag="ircd_connector::fd"></a><p>
762 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
765 <table cellpadding="0" cellspacing="0" border="0">
767 <td class="md" nowrap valign="top"> int <a class="el" href="classircd__connector.html#r1">ircd_connector::fd</a><code> [private]</code>
772 <table cellspacing=5 cellpadding=0 border=0>
780 File descriptor of the connection.
784 Definition at line <a class="el" href="connection_8h-source.html#l00063">63</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
787 <a name="o1" doxytag="ircd_connector::host"></a><p>
788 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
791 <table cellpadding="0" cellspacing="0" border="0">
793 <td class="md" nowrap valign="top"> char <a class="el" href="classircd__connector.html#o1">ircd_connector::host</a>[MAXBUF]
798 <table cellspacing=5 cellpadding=0 border=0>
806 When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.
810 Definition at line <a class="el" href="connection_8h-source.html#l00094">94</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
813 <a name="o0" doxytag="ircd_connector::ircdbuffer"></a><p>
814 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
817 <table cellpadding="0" cellspacing="0" border="0">
819 <td class="md" nowrap valign="top"> std::string <a class="el" href="classircd__connector.html#o0">ircd_connector::ircdbuffer</a>
824 <table cellspacing=5 cellpadding=0 border=0>
832 IRCD Buffer for input characters, holds one line.
836 Definition at line <a class="el" href="connection_8h-source.html#l00087">87</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
839 <a name="o2" doxytag="ircd_connector::port"></a><p>
840 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
843 <table cellpadding="0" cellspacing="0" border="0">
845 <td class="md" nowrap valign="top"> int <a class="el" href="classircd__connector.html#o2">ircd_connector::port</a>
850 <table cellspacing=5 cellpadding=0 border=0>
858 When MakeOutboundConnection is called, these public members are filled with the details passed to the function, for future reference.
862 Definition at line <a class="el" href="connection_8h-source.html#l00100">100</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
865 <a name="o3" doxytag="ircd_connector::routes"></a><p>
866 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
869 <table cellpadding="0" cellspacing="0" border="0">
871 <td class="md" nowrap valign="top"> std::vector<std::string> <a class="el" href="classircd__connector.html#o3">ircd_connector::routes</a>
876 <table cellspacing=5 cellpadding=0 border=0>
884 <a class="el" href="classServer.html">Server</a> names of servers that this server is linked to So for A->B->C, if this was the record for B it would contain A and C whilever both servers are connected to B.
888 Definition at line <a class="el" href="connection_8h-source.html#l00106">106</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
891 <a name="r2" doxytag="ircd_connector::servername"></a><p>
892 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
895 <table cellpadding="0" cellspacing="0" border="0">
897 <td class="md" nowrap valign="top"> std::string <a class="el" href="classircd__connector.html#r2">ircd_connector::servername</a><code> [private]</code>
902 <table cellspacing=5 cellpadding=0 border=0>
910 <a class="el" href="classServer.html">Server</a> name.
914 Definition at line <a class="el" href="connection_8h-source.html#l00067">67</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
917 <a name="r4" doxytag="ircd_connector::state"></a><p>
918 <table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
921 <table cellpadding="0" cellspacing="0" border="0">
923 <td class="md" nowrap valign="top"> int <a class="el" href="classircd__connector.html#r4">ircd_connector::state</a><code> [private]</code>
928 <table cellspacing=5 cellpadding=0 border=0>
938 STATE_NOAUTH_INBOUND, STATE_NOAUTH_OUTBOUND STATE_SYNC, STATE_DISCONNECTED, STATE_CONNECTED
940 Definition at line <a class="el" href="connection_8h-source.html#l00076">76</a> of file <a class="el" href="connection_8h-source.html">connection.h</a>. </td>
943 <hr>The documentation for this class was generated from the following file:<ul>
944 <li><a class="el" href="connection_8h-source.html">connection.h</a></ul>
945 <hr size="1"><address style="align: right;"><small>Generated on Tue Apr 26 17:11:48 2005 for InspIRCd by
946 <a href="http://www.doxygen.org/index.html">
947 <img src="doxygen.png" alt="doxygen" align="middle" border=0 >
948 </a>1.3.3 </small></address>