From b25c31de6b8dd839429cb168f5731a5605e17366 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 24 Apr 2004 23:26:47 +0000 Subject: Added new documentation for XLine etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@718 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/connection_8h-source.html | 247 +++++++++++++++--------------- 1 file changed, 124 insertions(+), 123 deletions(-) (limited to 'docs/module-doc/connection_8h-source.html') diff --git a/docs/module-doc/connection_8h-source.html b/docs/module-doc/connection_8h-source.html index 7946fe77f..e0bc42a22 100644 --- a/docs/module-doc/connection_8h-source.html +++ b/docs/module-doc/connection_8h-source.html @@ -32,131 +32,132 @@ 00024 #define STATE_SYNC 2 00025 #define STATE_NOAUTH_INBOUND 3 00026 #define STATE_NOAUTH_OUTBOUND 4 -00027 -00040 class ircd_connector : public classbase -00041 { -00042 private: -00045 sockaddr_in addr; -00046 -00049 int fd; -00050 -00053 std::string servername; -00054 -00057 std::string description; -00058 -00062 int state; -00063 -00066 bool SetHostAddress(char* host, int port); -00067 -00068 public: -00069 -00074 char host[MAXBUF]; -00075 -00080 int port; -00081 -00086 std::vector<std::string> routes; -00087 -00088 -00091 bool MakeOutboundConnection(char* host, int port); -00092 -00095 std::string GetServerName(); -00096 -00099 void SetServerName(std::string serv); -00100 -00103 int GetDescriptor(); -00104 -00107 void SetDescriptor(int fd); -00108 -00111 int GetState(); -00112 -00115 void SetState(int state); -00116 -00119 char* GetServerIP(); -00120 -00123 std::string GetDescription(); -00124 -00127 void SetDescription(std::string desc); -00128 -00134 int GetServerPort(); -00135 -00138 void SetServerPort(int p); -00139 -00142 bool SetHostAndPort(char* host, int port); -00143 -00147 void CloseConnection(); -00148 }; -00149 +00027 #define STATE_SERVICES 5 +00028 +00041 class ircd_connector : public classbase +00042 { +00043 private: +00046 sockaddr_in addr; +00047 +00050 int fd; +00051 +00054 std::string servername; +00055 +00058 std::string description; +00059 +00063 int state; +00064 +00067 bool SetHostAddress(char* host, int port); +00068 +00069 public: +00070 +00075 char host[MAXBUF]; +00076 +00081 int port; +00082 +00087 std::vector<std::string> routes; +00088 +00089 +00092 bool MakeOutboundConnection(char* host, int port); +00093 +00096 std::string GetServerName(); +00097 +00100 void SetServerName(std::string serv); +00101 +00104 int GetDescriptor(); +00105 +00108 void SetDescriptor(int fd); +00109 +00112 int GetState(); +00113 +00116 void SetState(int state); +00117 +00120 char* GetServerIP(); +00121 +00124 std::string GetDescription(); +00125 +00128 void SetDescription(std::string desc); +00129 +00135 int GetServerPort(); +00136 +00139 void SetServerPort(int p); +00140 +00143 bool SetHostAndPort(char* host, int port); +00144 +00148 void CloseConnection(); +00149 }; 00150 -00154 class packet : public classbase -00155 { -00156 }; -00157 -00160 class connection : public classbase -00161 { -00162 public: -00165 int fd; -00166 -00169 char host[256]; -00170 -00173 long ip; -00174 -00177 char inbuf[MAXBUF]; -00178 -00181 long bytes_in; -00182 -00185 long bytes_out; -00186 -00189 long cmds_in; -00190 -00193 long cmds_out; -00194 -00197 bool haspassed; -00198 -00203 int port; -00204 -00207 int registered; -00208 -00211 short int state; -00212 -00215 time_t lastping; -00216 -00219 time_t signon; -00220 -00223 time_t idle_lastmsg; -00224 -00227 time_t nping; -00228 -00231 char internal_addr[1024]; -00232 -00235 int internal_port; -00236 -00240 std::vector<ircd_connector> connectors; -00241 -00244 connection(); -00245 -00248 bool CreateListener(char* host, int p); -00249 -00252 bool BeginLink(char* targethost, int port, char* password, char* servername, int myport); -00253 -00256 bool MeshCookie(char* targethost, int port, long cookie, char* servername); -00257 -00260 void TerminateLink(char* targethost); -00261 -00265 bool SendPacket(char *message, const char* host); -00266 -00271 bool RecvPacket(std::deque<std::string> &messages, char* host); -00272 -00275 ircd_connector* FindHost(std::string host); -00276 -00280 bool AddIncoming(int fd,char* targethost, int sourceport); -00281 -00284 long GenKey(); -00285 }; -00286 +00151 +00155 class packet : public classbase +00156 { +00157 }; +00158 +00161 class connection : public classbase +00162 { +00163 public: +00166 int fd; +00167 +00170 char host[256]; +00171 +00174 char ip[32]; +00175 +00178 char inbuf[MAXBUF]; +00179 +00182 long bytes_in; +00183 +00186 long bytes_out; +00187 +00190 long cmds_in; +00191 +00194 long cmds_out; +00195 +00198 bool haspassed; +00199 +00204 int port; +00205 +00208 int registered; +00209 +00212 short int state; +00213 +00216 time_t lastping; +00217 +00220 time_t signon; +00221 +00224 time_t idle_lastmsg; +00225 +00228 time_t nping; +00229 +00232 char internal_addr[MAXBUF]; +00233 +00236 int internal_port; +00237 +00241 std::vector<ircd_connector> connectors; +00242 +00245 connection(); +00246 +00249 bool CreateListener(char* host, int p); +00250 +00253 bool BeginLink(char* targethost, int port, char* password, char* servername, int myport); +00254 +00257 bool MeshCookie(char* targethost, int port, long cookie, char* servername); +00258 +00261 void TerminateLink(char* targethost); +00262 +00266 bool SendPacket(char *message, const char* host); +00267 +00272 bool RecvPacket(std::deque<std::string> &messages, char* host); +00273 +00276 ircd_connector* FindHost(std::string host); +00277 +00281 bool AddIncoming(int fd,char* targethost, int sourceport); +00282 +00285 long GenKey(); +00286 }; 00287 -00288 #endif -00289 -
Generated on Mon Apr 19 02:34:32 2004 for InspIRCd by +00288 +00289 #endif +00290 +
Generated on Sun Apr 25 00:24:05 2004 for InspIRCd by doxygen1.3-rc3
-- cgit v1.2.3