diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-27 01:44:46 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-11-27 01:44:46 +0000 |
commit | cd9f9a8add02597a2998ba74b803ed3fbf81314c (patch) | |
tree | b53e3ea035c25a0580e9b31dc31f27ee33c36c96 /docs/module-doc/connection_8h-source.html | |
parent | 91755849c3bdf089f4583c119fcbb90ff99bed5b (diff) |
Added new documentation
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1966 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 | 261 |
1 files changed, 82 insertions, 179 deletions
diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 5cdf3e511..8570e44d5 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -1,186 +1,89 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>InspIRCd: connection.h Source File</title> <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="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> -00004 <span class="comment"> *</span> -00005 <span class="comment"> * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.</span> -00006 <span class="comment"> * E-mail:</span> -00007 <span class="comment"> * <brain@chatspike.net></span> -00008 <span class="comment"> * <Craig@chatspike.net></span> -00009 <span class="comment"> * </span> -00010 <span class="comment"> * Written by Craig Edwards, Craig McLure, and others.</span> -00011 <span class="comment"> * This program is free but copyrighted software; see</span> -00012 <span class="comment"> * the file COPYING for details.</span> -00013 <span class="comment"> *</span> -00014 <span class="comment"> * ---------------------------------------------------</span> -00015 <span class="comment"> */</span> -00016 -00017 <span class="preprocessor">#include "inspircd_config.h"</span> -00018 <span class="preprocessor">#include "<a class="code" href="base_8h.html">base.h</a>"</span> -00019 <span class="preprocessor">#include <string></span> -00020 <span class="preprocessor">#include <map></span> -00021 <span class="preprocessor">#include <sys/types.h></span> -00022 <span class="preprocessor">#include <sys/socket.h></span> -00023 <span class="preprocessor">#include <netdb.h></span> -00024 <span class="preprocessor">#include <netinet/in.h></span> -00025 <span class="preprocessor">#include <unistd.h></span> -00026 <span class="preprocessor">#include <errno.h></span> -00027 <span class="preprocessor">#include <time.h></span> -00028 <span class="preprocessor">#include <vector></span> -00029 <span class="preprocessor">#include <deque></span> -00030 <span class="preprocessor">#include <sstream></span> -00031 -00032 <span class="preprocessor">#ifndef __CONNECTION_H__</span> -00033 <span class="preprocessor"></span><span class="preprocessor">#define __CONNECTION_H__</span> -00034 <span class="preprocessor"></span> -<a name="l00035"></a><a class="code" href="connection_8h.html#a0">00035</a> <span class="preprocessor">#define STATE_DISCONNECTED 0</span> -<a name="l00036"></a><a class="code" href="connection_8h.html#a1">00036</a> <span class="preprocessor"></span><span class="preprocessor">#define STATE_CONNECTED 1</span> -<a name="l00037"></a><a class="code" href="connection_8h.html#a2">00037</a> <span class="preprocessor"></span><span class="preprocessor">#define STATE_SYNC 2</span> -<a name="l00038"></a><a class="code" href="connection_8h.html#a3">00038</a> <span class="preprocessor"></span><span class="preprocessor">#define STATE_NOAUTH_INBOUND 3</span> -<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> -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="l00090"></a><a class="code" href="classircd__connector.html#r6">00090</a> std::string <a class="code" href="classircd__connector.html#r6">sendq</a>; -00091 -<a name="l00094"></a><a class="code" href="classircd__connector.html#r7">00094</a> std::string <a class="code" href="classircd__connector.html#r7">WriteError</a>; -00095 -<a name="l00098"></a><a class="code" href="classircd__connector.html#r8">00098</a> time_t <a class="code" href="classircd__connector.html#r8">nextping</a>; -00099 -<a name="l00102"></a><a class="code" href="classircd__connector.html#r9">00102</a> <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#r9">replied</a>; -00103 -00104 <span class="keyword">public</span>: -00105 -<a name="l00110"></a><a class="code" href="classircd__connector.html#o0">00110</a> std::string <a class="code" href="classircd__connector.html#o0">ircdbuffer</a>; -00111 -00112 -<a name="l00117"></a><a class="code" href="classircd__connector.html#o1">00117</a> <span class="keywordtype">char</span> <a class="code" href="classircd__connector.html#o1">host</a>[MAXBUF]; -00118 -<a name="l00123"></a><a class="code" href="classircd__connector.html#o2">00123</a> <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#o2">port</a>; -00124 -<a name="l00129"></a><a class="code" href="classircd__connector.html#o3">00129</a> std::vector<std::string> <a class="code" href="classircd__connector.html#o3">routes</a>; -00130 -00133 <a class="code" href="classircd__connector.html#a0">ircd_connector</a>(); -00134 -00137 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a1">MakeOutboundConnection</a>(<span class="keywordtype">char</span>* newhost, <span class="keywordtype">int</span> newport); -00138 -00141 std::string <a class="code" href="classircd__connector.html#a2">GetServerName</a>(); -00142 -00146 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a3">SetServerName</a>(std::string serv); -00147 -00151 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a4">GetDescriptor</a>(); -00152 -00156 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a5">SetDescriptor</a>(<span class="keywordtype">int</span> fd); -00157 -00161 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a6">GetState</a>(); -00162 -00166 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a7">SetState</a>(<span class="keywordtype">int</span> state); -00167 -00171 <span class="keywordtype">char</span>* <a class="code" href="classircd__connector.html#a8">GetServerIP</a>(); -00172 -00176 std::string <a class="code" href="classircd__connector.html#a9">GetDescription</a>(); -00177 -00181 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a10">SetDescription</a>(std::string desc); -00182 -00190 <span class="keywordtype">int</span> <a class="code" href="classircd__connector.html#a11">GetServerPort</a>(); -00191 -00195 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a12">SetServerPort</a>(<span class="keywordtype">int</span> p); -00196 -00202 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a13">SetHostAndPort</a>(<span class="keywordtype">char</span>* newhost, <span class="keywordtype">int</span> newport); -00203 -00207 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a14">CloseConnection</a>(); -00208 -00217 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a15">AddBuffer</a>(std::string a); -00218 -00225 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a16">BufferIsComplete</a>(); -00226 -00229 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a17">ClearBuffer</a>(); -00230 -00237 std::string <a class="code" href="classircd__connector.html#a18">GetBuffer</a>(); -00238 -00242 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a19">SetVersionString</a>(std::string newversion); -00243 -00249 std::string <a class="code" href="classircd__connector.html#a20">GetVersionString</a>(); -00250 -00258 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a21">AddWriteBuf</a>(std::string data); -00259 -00265 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a22">FlushWriteBuf</a>(); -00266 -00270 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a23">SetWriteError</a>(std::string error); -00271 -00275 std::string <a class="code" href="classircd__connector.html#a24">GetWriteError</a>(); -00276 -00280 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a25">HasBufferedOutput</a>(); -00281 -00286 <span class="keywordtype">bool</span> <a class="code" href="classircd__connector.html#a26">CheckPing</a>(); -00287 -00290 <span class="keywordtype">void</span> <a class="code" href="classircd__connector.html#a27">ResetPing</a>(); -00291 }; -00292 -00293 -<a name="l00296"></a><a class="code" href="classconnection.html">00296</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> -00297 { -00298 <span class="keyword">public</span>: -<a name="l00301"></a><a class="code" href="classconnection.html#o0">00301</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o0">fd</a>; -00302 -<a name="l00305"></a><a class="code" href="classconnection.html#o1">00305</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o1">host</a>[160]; -00306 -<a name="l00309"></a><a class="code" href="classconnection.html#o2">00309</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o2">ip</a>[16]; -00310 -<a name="l00313"></a><a class="code" href="classconnection.html#o3">00313</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o3">bytes_in</a>; -00314 -<a name="l00317"></a><a class="code" href="classconnection.html#o4">00317</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o4">bytes_out</a>; -00318 -<a name="l00321"></a><a class="code" href="classconnection.html#o5">00321</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o5">cmds_in</a>; -00322 -<a name="l00325"></a><a class="code" href="classconnection.html#o6">00325</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o6">cmds_out</a>; -00326 -<a name="l00329"></a><a class="code" href="classconnection.html#o7">00329</a> <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#o7">haspassed</a>; -00330 -<a name="l00335"></a><a class="code" href="classconnection.html#o8">00335</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#o8">port</a>; -00336 -<a name="l00339"></a><a class="code" href="classconnection.html#o9">00339</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#o9">registered</a>; -00340 -<a name="l00343"></a><a class="code" href="classconnection.html#o10">00343</a> time_t <a class="code" href="classconnection.html#o10">lastping</a>; -00344 -<a name="l00347"></a><a class="code" href="classconnection.html#o11">00347</a> time_t <a class="code" href="classconnection.html#o11">signon</a>; -00348 -<a name="l00351"></a><a class="code" href="classconnection.html#o12">00351</a> time_t <a class="code" href="classconnection.html#o12">idle_lastmsg</a>; -00352 -<a name="l00355"></a><a class="code" href="classconnection.html#o13">00355</a> time_t <a class="code" href="classconnection.html#o13">nping</a>; -00356 -00359 <a class="code" href="classconnection.html#a0">connection</a>(); -00360 }; -00361 -00362 -00363 <span class="preprocessor">#endif</span> -</pre></div><hr size="1"><address style="align: right;"><small>Generated on Mon May 30 05:15:19 2005 for InspIRCd by +<!-- Generated by Doxygen 1.4.4-20050815 --> +<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">Class List</a> | <a class="qindex" href="dirs.html">Directories</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">Class Members</a> | <a class="qindex" href="globals.html">File Members</a></div> +<div class="nav"> +<a class="el" href="dir_000000.html">home</a> » <a class="el" href="dir_000001.html">brain</a> » <a class="el" href="dir_000002.html">inspircd-cvs</a> » <a class="el" href="dir_000003.html">inspircd</a> » <a class="el" href="dir_000004.html">include</a></div> +<h1>connection.h</h1><a href="connection_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/* +------------------------------------+</span> +<a name="l00002"></a>00002 <span class="comment"> * | Inspire Internet Relay Chat Daemon |</span> +<a name="l00003"></a>00003 <span class="comment"> * +------------------------------------+</span> +<a name="l00004"></a>00004 <span class="comment"> *</span> +<a name="l00005"></a>00005 <span class="comment"> * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.</span> +<a name="l00006"></a>00006 <span class="comment"> * E-mail:</span> +<a name="l00007"></a>00007 <span class="comment"> * <brain@chatspike.net></span> +<a name="l00008"></a>00008 <span class="comment"> * <Craig@chatspike.net></span> +<a name="l00009"></a>00009 <span class="comment"> * </span> +<a name="l00010"></a>00010 <span class="comment"> * Written by Craig Edwards, Craig McLure, and others.</span> +<a name="l00011"></a>00011 <span class="comment"> * This program is free but copyrighted software; see</span> +<a name="l00012"></a>00012 <span class="comment"> * the file COPYING for details.</span> +<a name="l00013"></a>00013 <span class="comment"> *</span> +<a name="l00014"></a>00014 <span class="comment"> * ---------------------------------------------------</span> +<a name="l00015"></a>00015 <span class="comment"> */</span> +<a name="l00016"></a>00016 +<a name="l00017"></a>00017 <span class="preprocessor">#include "inspircd_config.h"</span> +<a name="l00018"></a>00018 <span class="preprocessor">#include "<a class="code" href="base_8h.html">base.h</a>"</span> +<a name="l00019"></a>00019 <span class="preprocessor">#include <string></span> +<a name="l00020"></a>00020 <span class="preprocessor">#include <map></span> +<a name="l00021"></a>00021 <span class="preprocessor">#include <sys/types.h></span> +<a name="l00022"></a>00022 <span class="preprocessor">#include <sys/socket.h></span> +<a name="l00023"></a>00023 <span class="preprocessor">#include <netdb.h></span> +<a name="l00024"></a>00024 <span class="preprocessor">#include <netinet/in.h></span> +<a name="l00025"></a>00025 <span class="preprocessor">#include <unistd.h></span> +<a name="l00026"></a>00026 <span class="preprocessor">#include <errno.h></span> +<a name="l00027"></a>00027 <span class="preprocessor">#include <time.h></span> +<a name="l00028"></a>00028 <span class="preprocessor">#include <vector></span> +<a name="l00029"></a>00029 <span class="preprocessor">#include <deque></span> +<a name="l00030"></a>00030 <span class="preprocessor">#include <sstream></span> +<a name="l00031"></a>00031 +<a name="l00032"></a>00032 <span class="preprocessor">#ifndef __CONNECTION_H__</span> +<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define __CONNECTION_H__</span> +<a name="l00034"></a>00034 <span class="preprocessor"></span> +<a name="l00037"></a><a class="code" href="classconnection.html">00037</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> +<a name="l00038"></a>00038 { +<a name="l00039"></a>00039 <span class="keyword">public</span>: +<a name="l00042"></a><a class="code" href="classconnection.html#fd">00042</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#fd">fd</a>; +<a name="l00043"></a>00043 +<a name="l00046"></a><a class="code" href="classconnection.html#host_5B_31_36_30_5D">00046</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#host_5B_31_36_30_5D">host</a>[160]; +<a name="l00047"></a>00047 +<a name="l00050"></a><a class="code" href="classconnection.html#ip_5B_31_36_5D">00050</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#ip_5B_31_36_5D">ip</a>[16]; +<a name="l00051"></a>00051 +<a name="l00054"></a><a class="code" href="classconnection.html#bytes_5Fin">00054</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#bytes_5Fin">bytes_in</a>; +<a name="l00055"></a>00055 +<a name="l00058"></a><a class="code" href="classconnection.html#bytes_5Fout">00058</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#bytes_5Fout">bytes_out</a>; +<a name="l00059"></a>00059 +<a name="l00062"></a><a class="code" href="classconnection.html#cmds_5Fin">00062</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#cmds_5Fin">cmds_in</a>; +<a name="l00063"></a>00063 +<a name="l00066"></a><a class="code" href="classconnection.html#cmds_5Fout">00066</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#cmds_5Fout">cmds_out</a>; +<a name="l00067"></a>00067 +<a name="l00070"></a><a class="code" href="classconnection.html#haspassed">00070</a> <span class="keywordtype">bool</span> <a class="code" href="classconnection.html#haspassed">haspassed</a>; +<a name="l00071"></a>00071 +<a name="l00076"></a><a class="code" href="classconnection.html#port">00076</a> <span class="keywordtype">int</span> <a class="code" href="classconnection.html#port">port</a>; +<a name="l00077"></a>00077 +<a name="l00080"></a><a class="code" href="classconnection.html#registered">00080</a> <span class="keywordtype">char</span> <a class="code" href="classconnection.html#registered">registered</a>; +<a name="l00081"></a>00081 +<a name="l00084"></a><a class="code" href="classconnection.html#lastping">00084</a> time_t <a class="code" href="classconnection.html#lastping">lastping</a>; +<a name="l00085"></a>00085 +<a name="l00088"></a><a class="code" href="classconnection.html#signon">00088</a> time_t <a class="code" href="classconnection.html#signon">signon</a>; +<a name="l00089"></a>00089 +<a name="l00092"></a><a class="code" href="classconnection.html#idle_5Flastmsg">00092</a> time_t <a class="code" href="classconnection.html#idle_5Flastmsg">idle_lastmsg</a>; +<a name="l00093"></a>00093 +<a name="l00096"></a><a class="code" href="classconnection.html#nping">00096</a> time_t <a class="code" href="classconnection.html#nping">nping</a>; +<a name="l00097"></a>00097 +<a name="l00100"></a><a class="code" href="classconnection.html#connection_28_29">00100</a> <a class="code" href="classconnection.html#connection_28_29">connection</a>() +<a name="l00101"></a>00101 { +<a name="l00102"></a>00102 this-><a class="code" href="classconnection.html#fd">fd</a> = -1; +<a name="l00103"></a>00103 } +<a name="l00104"></a>00104 }; +<a name="l00105"></a>00105 +<a name="l00106"></a>00106 +<a name="l00107"></a>00107 <span class="preprocessor">#endif</span> +<a name="l00108"></a>00108 <span class="preprocessor"></span> +<a name="l00109"></a>00109 +</pre></div><hr size="1"><address style="align: right;"><small>Generated on Sun Nov 27 01:43:24 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> +<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.4-20050815 </small></address> </body> </html> |