From bab9f4b4bc0f6aa0e1377745fd216ef9874b3f27 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 9 Dec 2005 20:21:39 +0000 Subject: Added new module docs git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2301 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/users_8h-source.html | 317 ++++++++++++++++++----------------- 1 file changed, 162 insertions(+), 155 deletions(-) (limited to 'docs/module-doc/users_8h-source.html') diff --git a/docs/module-doc/users_8h-source.html b/docs/module-doc/users_8h-source.html index 38f9cd109..f355eeb54 100644 --- a/docs/module-doc/users_8h-source.html +++ b/docs/module-doc/users_8h-source.html @@ -28,164 +28,171 @@ 00019 #include "inspstring.h" 00020 #include "connection.h" 00021 #include <string> -00022 -00023 #ifndef __USERS_H__ -00024 #define __USERS_H__ +00022 #ifdef THREADED_DNS +00023 #include <pthread.h> +00024 #endif 00025 -00026 #define STATUS_OP 4 -00027 #define STATUS_HOP 2 -00028 #define STATUS_VOICE 1 -00029 #define STATUS_NORMAL 0 -00030 -00031 #define CC_ALLOW 0 -00032 #define CC_DENY 1 +00026 #ifndef __USERS_H__ +00027 #define __USERS_H__ +00028 +00029 #define STATUS_OP 4 +00030 #define STATUS_HOP 2 +00031 #define STATUS_VOICE 1 +00032 #define STATUS_NORMAL 0 00033 -00036 class Invited : public classbase -00037 { -00038 public: -00039 char channel[CHANMAX]; -00040 }; -00041 -00042 -00045 class ConnectClass : public classbase -00046 { -00047 public: -00050 char type; -00053 int registration_timeout; -00056 int flood; -00059 char host[MAXBUF]; -00062 int pingtime; -00065 char pass[MAXBUF]; -00066 -00069 int threshold; -00070 -00073 long sendqmax; -00074 -00077 long recvqmax; -00078 -00079 ConnectClass() -00080 { -00081 registration_timeout = 0; -00082 flood = 0; -00083 pingtime = 0; -00084 threshold = 0; -00085 sendqmax = 0; -00086 recvqmax = 0; -00087 strlcpy(host,"",MAXBUF); -00088 strlcpy(pass,"",MAXBUF); -00089 } -00090 }; -00091 -00094 typedef std::vector<Invited> InvitedList; -00095 -00096 -00097 -00100 typedef std::vector<ConnectClass> ClassVector; -00101 -00108 class userrec : public connection -00109 { -00110 private: -00111 -00114 InvitedList invites; -00115 public: -00116 -00121 char nick[NICKMAX]; -00122 -00126 char ident[IDENTMAX+2]; -00127 -00131 char dhost[160]; -00132 -00135 char fullname[MAXGECOS+1]; -00136 -00144 char modes[54]; -00145 -00146 ucrec chans[MAXCHANS]; -00147 -00150 char* server; -00151 -00155 char awaymsg[MAXAWAY+1]; -00156 -00161 int flood; -00162 -00167 unsigned int timeout; -00168 -00174 char oper[NICKMAX]; -00175 -00178 bool dns_done; -00179 -00182 unsigned int pingmax; -00183 -00188 char password[MAXBUF]; -00189 -00194 std::string recvq; -00195 -00199 std::string sendq; -00200 -00203 int lines_in; -00204 time_t reset_due; -00205 long threshold; -00206 -00207 /* Write error string -00208 */ -00209 std::string WriteError; -00210 -00213 long sendqmax; -00214 -00217 long recvqmax; -00218 -00219 userrec(); -00220 -00221 virtual ~userrec() { } -00222 -00227 virtual char* GetFullHost(); -00228 -00234 virtual char* GetFullRealHost(); -00235 -00238 virtual bool IsInvited(char* channel); -00239 -00242 virtual void InviteTo(char* channel); -00243 -00248 virtual void RemoveInvite(char* channel); -00249 -00254 bool HasPermission(char* command); -00255 -00258 int ReadData(void* buffer, size_t size); -00259 -00267 bool AddBuffer(std::string a); -00268 -00272 bool BufferIsReady(); -00273 -00276 void ClearBuffer(); -00277 -00285 std::string GetBuffer(); -00286 -00292 void SetWriteError(std::string error); -00293 -00297 std::string GetWriteError(); -00298 -00304 void AddWriteBuf(std::string data); -00305 -00312 void FlushWriteBuf(); -00313 -00316 InvitedList* GetInviteList(); -00317 -00320 void CloseSocket(); -00321 }; +00034 #define CC_ALLOW 0 +00035 #define CC_DENY 1 +00036 +00039 class Invited : public classbase +00040 { +00041 public: +00042 char channel[CHANMAX]; +00043 }; +00044 +00045 +00048 class ConnectClass : public classbase +00049 { +00050 public: +00053 char type; +00056 int registration_timeout; +00059 int flood; +00062 char host[MAXBUF]; +00065 int pingtime; +00068 char pass[MAXBUF]; +00069 +00072 int threshold; +00073 +00076 long sendqmax; +00077 +00080 long recvqmax; +00081 +00082 ConnectClass() +00083 { +00084 registration_timeout = 0; +00085 flood = 0; +00086 pingtime = 0; +00087 threshold = 0; +00088 sendqmax = 0; +00089 recvqmax = 0; +00090 strlcpy(host,"",MAXBUF); +00091 strlcpy(pass,"",MAXBUF); +00092 } +00093 }; +00094 +00097 typedef std::vector<Invited> InvitedList; +00098 +00099 +00100 +00103 typedef std::vector<ConnectClass> ClassVector; +00104 +00111 class userrec : public connection +00112 { +00113 private: +00114 +00117 InvitedList invites; +00118 public: +00119 +00124 char nick[NICKMAX]; +00125 +00129 char ident[IDENTMAX+2]; +00130 +00134 char dhost[160]; +00135 +00138 char fullname[MAXGECOS+1]; +00139 +00147 char modes[54]; +00148 +00149 ucrec chans[MAXCHANS]; +00150 +00153 char* server; +00154 +00158 char awaymsg[MAXAWAY+1]; +00159 +00164 int flood; +00165 +00170 unsigned int timeout; +00171 +00177 char oper[NICKMAX]; +00178 +00181 bool dns_done; +00182 +00185 unsigned int pingmax; +00186 +00191 char password[MAXBUF]; +00192 +00197 std::string recvq; +00198 +00202 std::string sendq; +00203 +00206 int lines_in; +00207 time_t reset_due; +00208 long threshold; +00209 +00210 /* Write error string +00211 */ +00212 std::string WriteError; +00213 +00216 long sendqmax; +00217 +00220 long recvqmax; +00221 +00222 userrec(); +00223 +00228 virtual char* GetFullHost(); +00229 +00235 virtual char* GetFullRealHost(); +00236 +00239 virtual bool IsInvited(char* channel); +00240 +00243 virtual void InviteTo(char* channel); +00244 +00249 virtual void RemoveInvite(char* channel); +00250 +00255 bool HasPermission(char* command); +00256 +00259 int ReadData(void* buffer, size_t size); +00260 +00268 bool AddBuffer(std::string a); +00269 +00273 bool BufferIsReady(); +00274 +00277 void ClearBuffer(); +00278 +00286 std::string GetBuffer(); +00287 +00293 void SetWriteError(std::string error); +00294 +00298 std::string GetWriteError(); +00299 +00305 void AddWriteBuf(std::string data); +00306 +00313 void FlushWriteBuf(); +00314 +00317 InvitedList* GetInviteList(); +00318 +00321 void CloseSocket(); 00322 -00325 class WhoWasUser -00326 { -00327 public: -00328 char nick[NICKMAX]; -00329 char ident[IDENTMAX+1]; -00330 char dhost[160]; -00331 char host[160]; -00332 char fullname[MAXGECOS+1]; -00333 char server[256]; -00334 time_t signon; -00335 }; -00336 -00337 #endif -
Generated on Sun Nov 27 01:43:24 2005 for InspIRCd by  +00323 virtual ~userrec(); +00324 +00325 #ifdef THREADED_DNS +00326 pthread_t dnsthread; +00327 #endif +00328 }; +00329 +00332 class WhoWasUser +00333 { +00334 public: +00335 char nick[NICKMAX]; +00336 char ident[IDENTMAX+1]; +00337 char dhost[160]; +00338 char host[160]; +00339 char fullname[MAXGECOS+1]; +00340 char server[256]; +00341 time_t signon; +00342 }; +00343 +00344 #endif +
Generated on Fri Dec 9 20:20:03 2005 for InspIRCd by  doxygen 1.4.4-20050815
-- cgit v1.2.3