From a96514c284514116300794696f062c7fa6b1f79f Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 19:17:41 +0000 Subject: Added new docs for class InspIRCd and globals.h etc git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2451 e03df62e-2008-0410-955e-edbf42e46eb7 --- docs/module-doc/socket_8cpp-source.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'docs/module-doc/socket_8cpp-source.html') diff --git a/docs/module-doc/socket_8cpp-source.html b/docs/module-doc/socket_8cpp-source.html index 0d6f107da..abe739680 100644 --- a/docs/module-doc/socket_8cpp-source.html +++ b/docs/module-doc/socket_8cpp-source.html @@ -39,7 +39,7 @@ 00030 #include <iostream> 00031 #include <fstream> 00032 #include "socket.h" -00033 #include "inspircd.h" +00033 #include "inspircd.h" 00034 #include "inspircd_io.h" 00035 #include "inspircd_util.h" 00036 #include "inspstring.h" @@ -48,8 +48,8 @@ 00039 00040 extern SocketEngine* SE; 00041 -00042 extern int boundPortCount; -00043 extern int openSockfd[MAXSOCKS]; +00042 extern int boundPortCount; +00043 extern int openSockfd[MAXSOCKS]; 00044 extern time_t TIME; 00045 00046 InspSocket* socket_ref[65535]; @@ -71,23 +71,23 @@ 00062 InspSocket::InspSocket(std::string host, int port, bool listening, unsigned long maxtime) 00063 { 00064 if (listening) { -00065 if ((this->fd = OpenTCPSocket()) == ERROR) +00065 if ((this->fd = OpenTCPSocket()) == ERROR) 00066 { 00067 this->fd = -1; 00068 this->state = I_ERROR; 00069 this->OnError(I_ERR_SOCKET); -00070 log(DEBUG,"OpenTCPSocket() error"); +00070 log(DEBUG,"OpenTCPSocket() error"); 00071 return; 00072 } 00073 else 00074 { -00075 if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR) +00075 if (BindSocket(this->fd,this->client,this->server,port,(char*)host.c_str()) == ERROR) 00076 { 00077 this->Close(); 00078 this->fd = -1; 00079 this->state = I_ERROR; 00080 this->OnError(I_ERR_BIND); -00081 log(DEBUG,"BindSocket() error %s",strerror(errno)); +00081 log(DEBUG,"BindSocket() error %s",strerror(errno)); 00082 return; 00083 } 00084 else @@ -95,7 +95,7 @@ 00086 this->state = I_LISTENING; 00087 SE->AddFd(this->fd,true,X_ESTAB_MODULE); 00088 socket_ref[this->fd] = this; -00089 log(DEBUG,"New socket now in I_LISTENING state"); +00089 log(DEBUG,"New socket now in I_LISTENING state"); 00090 return; 00091 } 00092 } @@ -174,7 +174,7 @@ 00165 } 00166 else 00167 { -00168 log(DEBUG,"EOF or error on socket"); +00168 log(DEBUG,"EOF or error on socket"); 00169 return NULL; 00170 } 00171 } @@ -256,7 +256,7 @@ 00247 00248 void InspSocket::SetState(InspSocketState s) 00249 { -00250 log(DEBUG,"Socket state change"); +00250 log(DEBUG,"Socket state change"); 00251 this->state = s; 00252 } 00253 @@ -287,7 +287,7 @@ 00278 int BindSocket (int sockfd, struct sockaddr_in client, struct sockaddr_in server, int port, char* addr) 00279 int OpenTCPSocket (void) 00280 */ -
Generated on Wed Dec 14 15:55:46 2005 for InspIRCd by  +
Generated on Wed Dec 14 19:16:12 2005 for InspIRCd by  doxygen 1.4.4-20050815
-- cgit v1.2.3