diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 17:05:15 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-15 17:05:15 +0000 |
commit | 4d5a17380bc71cabe544b41c7c8a26a292384f3d (patch) | |
tree | 9a882bc421d4c250817a17980265b76e06e4cf8c /docs/module-doc/connection_8h-source.html | |
parent | a48ee868ed80b689b773fdd9bbd8f1e761dc3b8a (diff) |
Added docs for hashcomp
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1396 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'docs/module-doc/connection_8h-source.html')
-rw-r--r-- | docs/module-doc/connection_8h-source.html | 256 |
1 files changed, 129 insertions, 127 deletions
diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index a808f43f7..e56f1b61b 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -4,7 +4,7 @@ <link href="inspircd.doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.3.3 --> -<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> +<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="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Compound Members</a> | <a class="qindex" href="globals.html">File Members</a></div> <h1>connection.h</h1><a href="connection_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/* +------------------------------------+</span> 00002 <span class="comment"> * | Inspire Internet Relay Chat Daemon |</span> 00003 <span class="comment"> * +------------------------------------+</span> @@ -46,133 +46,135 @@ <a name="l00039"></a><a class="code" href="connection_8h.html#a4">00039</a> <span class="preprocessor"></span><span class="preprocessor">#define STATE_NOAUTH_OUTBOUND 4</span> <a name="l00040"></a><a class="code" href="connection_8h.html#a5">00040</a> <span class="preprocessor"></span><span class="preprocessor">#define STATE_SERVICES 5</span> 00041 <span class="preprocessor"></span> -<a name="l00054"></a><a class="code" href="classircd__connector.html">00054</a> <span class="keyword">class </span><a class="code" href="classircd__connector.html">ircd_connector</a> : <span class="keyword">public</span> <a class="code" href="classExtensible.html">Extensible</a> -00055 { -00056 <span class="keyword">private</span>: -<a name="l00059"></a><a class="code" href="classircd__connector.html#r0">00059</a> sockaddr_in <a class="code" href="classircd__connector.html#r0">addr</a>; -00060 -<a name="l00063"></a><a class="code" href="classircd__connector.html#r1">00063</a> <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#r1">fd</a>; -00064 -<a name="l00067"></a><a class="code" href="classircd__connector.html#r2">00067</a> std::string <a class="code" href="classircd__connector.html#r2">servername</a>; -00068 -<a name="l00071"></a><a class="code" href="classircd__connector.html#r3">00071</a> std::string <a class="code" href="classircd__connector.html#r3">description</a>; -00072 -<a name="l00076"></a><a class="code" href="classircd__connector.html#r4">00076</a> <span class="keywordtype">char</span> <a class="code" href="classircd__connector.html#r4">state</a>; -00077 -00080 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#d0">SetHostAddress</a>(<span class="keywordtype">char</span>* host, <span class="keywordtype">int</span> port); -00081 -<a name="l00084"></a><a class="code" href="classircd__connector.html#r5">00084</a> std::string <a class="code" href="classircd__connector.html#r5">version</a>; -00085 -00086 <span class="keyword">public</span>: +00042 std::string <a class="code" href="connection_8h.html#a6">CreateSum</a>(); +00043 +<a name="l00056"></a><a class="code" href="classircd__connector.html">00056</a> <span class="keyword">class </span><a class="code" href="classircd__connector.html">ircd_connector</a> : <span class="keyword">public</span> <a class="code" href="classExtensible.html">Extensible</a> +00057 { +00058 <span class="keyword">private</span>: +<a name="l00061"></a><a class="code" href="classircd__connector.html#r0">00061</a> sockaddr_in <a class="code" href="classircd__connector.html#r0">addr</a>; +00062 +<a name="l00065"></a><a class="code" href="classircd__connector.html#r1">00065</a> <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#r1">fd</a>; +00066 +<a name="l00069"></a><a class="code" href="classircd__connector.html#r2">00069</a> std::string <a class="code" href="classircd__connector.html#r2">servername</a>; +00070 +<a name="l00073"></a><a class="code" href="classircd__connector.html#r3">00073</a> std::string <a class="code" href="classircd__connector.html#r3">description</a>; +00074 +<a name="l00078"></a><a class="code" href="classircd__connector.html#r4">00078</a> <span class="keywordtype">char</span> <a class="code" href="classircd__connector.html#r4">state</a>; +00079 +00082 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#d0">SetHostAddress</a>(<span class="keywordtype">char</span>* host, <span class="keywordtype">int</span> port); +00083 +<a name="l00086"></a><a class="code" href="classircd__connector.html#r5">00086</a> std::string <a class="code" href="classircd__connector.html#r5">version</a>; 00087 -<a name="l00092"></a><a class="code" href="classircd__connector.html#o0">00092</a> std::string <a class="code" href="classircd__connector.html#o0">ircdbuffer</a>; -00093 -00094 -<a name="l00099"></a><a class="code" href="classircd__connector.html#o1">00099</a> <span class="keywordtype">char</span> <a class="code" href="classircd__connector.html#o1">host</a>[MAXBUF]; -00100 -<a name="l00105"></a><a class="code" href="classircd__connector.html#o2">00105</a> <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#o2">port</a>; -00106 -<a name="l00111"></a><a class="code" href="classircd__connector.html#o3">00111</a> std::vector<std::string> <a class="code" href="classircd__connector.html#o3">routes</a>; -00112 -00113 -00116 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a0">MakeOutboundConnection</a>(<span class="keywordtype">char</span>* newhost, <span class="keywordtype">int</span> newport); -00117 -00120 std::string <a class="code" href="classircd__connector.html#a1">GetServerName</a>(); -00121 -00124 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a2">SetServerName</a>(std::string serv); -00125 -00128 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a3">GetDescriptor</a>(); -00129 -00132 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a4">SetDescriptor</a>(<span class="keywordtype">int</span> fd); -00133 -00136 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a5">GetState</a>(); -00137 -00140 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a6">SetState</a>(<span class="keywordtype">int</span> state); -00141 -00144 <span class="keywordtype">char</span>* <a class="code" href="classircd__connector.html#a7">GetServerIP</a>(); -00145 -00148 std::string <a class="code" href="classircd__connector.html#a8">GetDescription</a>(); -00149 -00152 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a9">SetDescription</a>(std::string desc); -00153 -00159 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a10">GetServerPort</a>(); -00160 -00163 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a11">SetServerPort</a>(<span class="keywordtype">int</span> p); -00164 -00167 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a12">SetHostAndPort</a>(<span class="keywordtype">char</span>* newhost, <span class="keywordtype">int</span> newport); -00168 -00172 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a13">CloseConnection</a>(); -00173 -00179 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a14">AddBuffer</a>(std::string a); -00180 -00185 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a15">BufferIsComplete</a>(); -00186 -00189 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a16">ClearBuffer</a>(); -00190 -00195 std::string <a class="code" href="classircd__connector.html#a17">GetBuffer</a>(); -00196 -00199 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a18">SetVersionString</a>(std::string newversion); -00200 -00204 std::string <a class="code" href="classircd__connector.html#a19">GetVersionString</a>(); -00205 }; -00206 -00207 -<a name="l00210"></a><a class="code" href="classconnection.html">00210</a> <span class="keyword">class </span><a class="code" href="classconnection.html">connection</a> : <span class="keyword">public</span> <a class="code" href="classExtensible.html">Extensible</a> -00211 { -00212 <span class="keyword">public</span>: -<a name="l00215"></a><a class="code" href="classconnection.html#o0">00215</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o0">fd</a>; -00216 -<a name="l00219"></a><a class="code" href="classconnection.html#o1">00219</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o1">host</a>[160]; -00220 -<a name="l00223"></a><a class="code" href="classconnection.html#o2">00223</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o2">ip</a>[16]; -00224 -<a name="l00227"></a><a class="code" href="classconnection.html#o3">00227</a> <span class="keywordtype">long</span> <a class="code" href="classconnection.html#o3">bytes_in</a>; -00228 -<a name="l00231"></a><a class="code" href="classconnection.html#o4">00231</a> <span class="keywordtype">long</span> <a class="code" href="classconnection.html#o4">bytes_out</a>; -00232 -<a name="l00235"></a><a class="code" href="classconnection.html#o5">00235</a> <span class="keywordtype">long</span> <a class="code" href="classconnection.html#o5">cmds_in</a>; -00236 -<a name="l00239"></a><a class="code" href="classconnection.html#o6">00239</a> <span class="keywordtype">long</span> <a class="code" href="classconnection.html#o6">cmds_out</a>; -00240 -<a name="l00243"></a><a class="code" href="classconnection.html#o7">00243</a> <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#o7">haspassed</a>; -00244 -<a name="l00249"></a><a class="code" href="classconnection.html#o8">00249</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o8">port</a>; -00250 -<a name="l00253"></a><a class="code" href="classconnection.html#o9">00253</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o9">registered</a>; -00254 -<a name="l00257"></a><a class="code" href="classconnection.html#o10">00257</a> time_t <a class="code" href="classconnection.html#o10">lastping</a>; -00258 -<a name="l00261"></a><a class="code" href="classconnection.html#o11">00261</a> time_t <a class="code" href="classconnection.html#o11">signon</a>; -00262 -<a name="l00265"></a><a class="code" href="classconnection.html#o12">00265</a> time_t <a class="code" href="classconnection.html#o12">idle_lastmsg</a>; -00266 -<a name="l00269"></a><a class="code" href="classconnection.html#o13">00269</a> time_t <a class="code" href="classconnection.html#o13">nping</a>; -00270 -<a name="l00274"></a><a class="code" href="classconnection.html#o14">00274</a> std::vector<ircd_connector> <a class="code" href="classconnection.html#o14">connectors</a>; -00275 -00278 <a class="code" href="classconnection.html#a0">connection</a>(); -00279 -00282 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a1">CreateListener</a>(<span class="keywordtype">char</span>* host, <span class="keywordtype">int</span> p); -00283 -00286 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a2">BeginLink</a>(<span class="keywordtype">char</span>* targethost, <span class="keywordtype">int</span> port, <span class="keywordtype">char</span>* password, <span class="keywordtype">char</span>* servername, <span class="keywordtype">int</span> myport); -00287 -00290 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a3">MeshCookie</a>(<span class="keywordtype">char</span>* targethost, <span class="keywordtype">int</span> port, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cookie, <span class="keywordtype">char</span>* servername); -00291 -00294 <span class="keywordtype">void</span> <a class="code" href="classconnection.html#a4">TerminateLink</a>(<span class="keywordtype">char</span>* targethost); -00295 -00299 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a5">SendPacket</a>(<span class="keywordtype">char</span> *message, <span class="keyword">const</span> <span class="keywordtype">char</span>* host); -00300 -00305 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a6">RecvPacket</a>(std::deque<std::string> &messages, <span class="keywordtype">char</span>* host); -00306 -00309 <a class="code" href="classircd__connector.html">ircd_connector</a>* <a class="code" href="classconnection.html#a7">FindHost</a>(std::string host); -00310 -00314 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a8">AddIncoming</a>(<span class="keywordtype">int</span> fd,<span class="keywordtype">char</span>* targethost, <span class="keywordtype">int</span> sourceport); -00315 -00316 }; -00317 -00318 -00319 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri May 13 15:48:41 2005 for InspIRCd by +00088 <span class="keyword">public</span>: +00089 +<a name="l00094"></a><a class="code" href="classircd__connector.html#o0">00094</a> std::string <a class="code" href="classircd__connector.html#o0">ircdbuffer</a>; +00095 +00096 +<a name="l00101"></a><a class="code" href="classircd__connector.html#o1">00101</a> <span class="keywordtype">char</span> <a class="code" href="classircd__connector.html#o1">host</a>[MAXBUF]; +00102 +<a name="l00107"></a><a class="code" href="classircd__connector.html#o2">00107</a> <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#o2">port</a>; +00108 +<a name="l00113"></a><a class="code" href="classircd__connector.html#o3">00113</a> std::vector<std::string> <a class="code" href="classircd__connector.html#o3">routes</a>; +00114 +00115 +00118 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a0">MakeOutboundConnection</a>(<span class="keywordtype">char</span>* newhost, <span class="keywordtype">int</span> newport); +00119 +00122 std::string <a class="code" href="classircd__connector.html#a1">GetServerName</a>(); +00123 +00126 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a2">SetServerName</a>(std::string serv); +00127 +00130 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a3">GetDescriptor</a>(); +00131 +00134 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a4">SetDescriptor</a>(<span class="keywordtype">int</span> fd); +00135 +00138 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a5">GetState</a>(); +00139 +00142 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a6">SetState</a>(<span class="keywordtype">int</span> state); +00143 +00146 <span class="keywordtype">char</span>* <a class="code" href="classircd__connector.html#a7">GetServerIP</a>(); +00147 +00150 std::string <a class="code" href="classircd__connector.html#a8">GetDescription</a>(); +00151 +00154 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a9">SetDescription</a>(std::string desc); +00155 +00161 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a10">GetServerPort</a>(); +00162 +00165 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a11">SetServerPort</a>(<span class="keywordtype">int</span> p); +00166 +00169 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a12">SetHostAndPort</a>(<span class="keywordtype">char</span>* newhost, <span class="keywordtype">int</span> newport); +00170 +00174 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a13">CloseConnection</a>(); +00175 +00181 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a14">AddBuffer</a>(std::string a); +00182 +00187 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a15">BufferIsComplete</a>(); +00188 +00191 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a16">ClearBuffer</a>(); +00192 +00197 std::string <a class="code" href="classircd__connector.html#a17">GetBuffer</a>(); +00198 +00201 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a18">SetVersionString</a>(std::string newversion); +00202 +00206 std::string <a class="code" href="classircd__connector.html#a19">GetVersionString</a>(); +00207 }; +00208 +00209 +<a name="l00212"></a><a class="code" href="classconnection.html">00212</a> <span class="keyword">class </span><a class="code" href="classconnection.html">connection</a> : <span class="keyword">public</span> <a class="code" href="classExtensible.html">Extensible</a> +00213 { +00214 <span class="keyword">public</span>: +<a name="l00217"></a><a class="code" href="classconnection.html#o0">00217</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o0">fd</a>; +00218 +<a name="l00221"></a><a class="code" href="classconnection.html#o1">00221</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o1">host</a>[160]; +00222 +<a name="l00225"></a><a class="code" href="classconnection.html#o2">00225</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o2">ip</a>[16]; +00226 +<a name="l00229"></a><a class="code" href="classconnection.html#o3">00229</a> <span class="keywordtype">long</span> <a class="code" href="classconnection.html#o3">bytes_in</a>; +00230 +<a name="l00233"></a><a class="code" href="classconnection.html#o4">00233</a> <span class="keywordtype">long</span> <a class="code" href="classconnection.html#o4">bytes_out</a>; +00234 +<a name="l00237"></a><a class="code" href="classconnection.html#o5">00237</a> <span class="keywordtype">long</span> <a class="code" href="classconnection.html#o5">cmds_in</a>; +00238 +<a name="l00241"></a><a class="code" href="classconnection.html#o6">00241</a> <span class="keywordtype">long</span> <a class="code" href="classconnection.html#o6">cmds_out</a>; +00242 +<a name="l00245"></a><a class="code" href="classconnection.html#o7">00245</a> <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#o7">haspassed</a>; +00246 +<a name="l00251"></a><a class="code" href="classconnection.html#o8">00251</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o8">port</a>; +00252 +<a name="l00255"></a><a class="code" href="classconnection.html#o9">00255</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o9">registered</a>; +00256 +<a name="l00259"></a><a class="code" href="classconnection.html#o10">00259</a> time_t <a class="code" href="classconnection.html#o10">lastping</a>; +00260 +<a name="l00263"></a><a class="code" href="classconnection.html#o11">00263</a> time_t <a class="code" href="classconnection.html#o11">signon</a>; +00264 +<a name="l00267"></a><a class="code" href="classconnection.html#o12">00267</a> time_t <a class="code" href="classconnection.html#o12">idle_lastmsg</a>; +00268 +<a name="l00271"></a><a class="code" href="classconnection.html#o13">00271</a> time_t <a class="code" href="classconnection.html#o13">nping</a>; +00272 +<a name="l00276"></a><a class="code" href="classconnection.html#o14">00276</a> std::vector<ircd_connector> <a class="code" href="classconnection.html#o14">connectors</a>; +00277 +00280 <a class="code" href="classconnection.html#a0">connection</a>(); +00281 +00284 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a1">CreateListener</a>(<span class="keywordtype">char</span>* host, <span class="keywordtype">int</span> p); +00285 +00288 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a2">BeginLink</a>(<span class="keywordtype">char</span>* targethost, <span class="keywordtype">int</span> port, <span class="keywordtype">char</span>* password, <span class="keywordtype">char</span>* servername, <span class="keywordtype">int</span> myport); +00289 +00292 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a3">MeshCookie</a>(<span class="keywordtype">char</span>* targethost, <span class="keywordtype">int</span> port, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> cookie, <span class="keywordtype">char</span>* servername); +00293 +00296 <span class="keywordtype">void</span> <a class="code" href="classconnection.html#a4">TerminateLink</a>(<span class="keywordtype">char</span>* targethost); +00297 +00301 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a5">SendPacket</a>(<span class="keywordtype">char</span> *message, <span class="keyword">const</span> <span class="keywordtype">char</span>* host); +00302 +00307 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a6">RecvPacket</a>(std::deque<std::string> &messages, <span class="keywordtype">char</span>* host, std::deque<std::string> &sums); +00308 +00311 <a class="code" href="classircd__connector.html">ircd_connector</a>* <a class="code" href="classconnection.html#a7">FindHost</a>(std::string host); +00312 +00316 <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#a8">AddIncoming</a>(<span class="keywordtype">int</span> fd,<span class="keywordtype">char</span>* targethost, <span class="keywordtype">int</span> sourceport); +00317 +00318 }; +00319 +00320 +00321 <span class="preprocessor">#endif</span> +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun May 15 17:02:05 2005 for InspIRCd by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border=0 > </a>1.3.3 </small></address> |