From a7b0c26a4c56440e4bc5ddc6d3ecfeb36089dbb2 Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 6 Apr 2006 02:25:20 +0000 Subject: Holy christ that was a LOT OF SPACES. TABS, USE THEM, LOVE THEM, APPRECIATE THEM - we now have no stupid spaces. This was mostly a mass find/replace, so some indentation may be stuffed. Minor issue, though. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3838 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socket.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/socket.cpp') diff --git a/src/socket.cpp b/src/socket.cpp index 1b2683257..1b657e568 100644 --- a/src/socket.cpp +++ b/src/socket.cpp @@ -73,7 +73,7 @@ InspSocket::InspSocket(const std::string &ahost, int aport, bool listening, unsi this->OnError(I_ERR_SOCKET); this->ClosePending = true; log(DEBUG,"OpenTCPSocket() error"); - return; + return; } else { @@ -109,7 +109,7 @@ InspSocket::InspSocket(const std::string &ahost, int aport, bool listening, unsi this->dns.SetNS(std::string(Config->DNSServer)); this->dns.ForwardLookupWithFD(host,fd); timeout_end = time(NULL) + maxtime; - timeout = false; + timeout = false; this->state = I_RESOLVING; socket_ref[this->fd] = this; } @@ -125,7 +125,7 @@ InspSocket::InspSocket(const std::string &ahost, int aport, bool listening, unsi void InspSocket::SetQueues(int nfd) { - // attempt to increase socket sendq and recvq as high as its possible + // attempt to increase socket sendq and recvq as high as its possible int sendbuf = 32768; int recvbuf = 32768; setsockopt(nfd,SOL_SOCKET,SO_SNDBUF,(const void *)&sendbuf,sizeof(sendbuf)); @@ -210,11 +210,11 @@ void InspSocket::Close() if (this->fd != -1) { this->OnClose(); - shutdown(this->fd,2); - close(this->fd); + shutdown(this->fd,2); + close(this->fd); socket_ref[this->fd] = NULL; this->ClosePending = true; - this->fd = -1; + this->fd = -1; } } -- cgit v1.2.3