]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspsocket.cpp
Fix m_banredirect: (hint: sizeof(f) != sizeof(*f) ;p)
[user/henk/code/inspircd.git] / src / inspsocket.cpp
index 83754741f853872c80d8c79d07591eb7369e04a2..9ab9e80c1c09487bf5a1857ece6ae736eb76ef86 100644 (file)
@@ -11,6 +11,8 @@
  * ---------------------------------------------------
  */
 
+/* $Core: libIRCDinspsocket */
+
 #include "socket.h"
 #include "inspstring.h"
 #include "socketengine.h"
@@ -149,7 +151,10 @@ void BufferedSocket::SetQueues(int nfd)
        int sendbuf = 32768;
        int recvbuf = 32768;
        if(setsockopt(nfd,SOL_SOCKET,SO_SNDBUF,(const char *)&sendbuf,sizeof(sendbuf)) || setsockopt(nfd,SOL_SOCKET,SO_RCVBUF,(const char *)&recvbuf,sizeof(sendbuf)))
-               this->Instance->Log(DEFAULT, "Could not increase SO_SNDBUF/SO_RCVBUF for socket %u", GetFd());
+       {
+               //this->Instance->Log(DEFAULT, "Could not increase SO_SNDBUF/SO_RCVBUF for socket %u", GetFd());
+               ; // do nothing. I'm a little sick of people trying to interpret this message as a result of why their incorrect setups don't work.
+       }
 }
 
 /* Most irc servers require you to specify the ip you want to bind to.
@@ -231,6 +236,7 @@ bool BufferedSocket::BindAddr(const std::string &ip)
                }
                j++;
        }
+       Instance->Log(DEBUG,"nothing in the config to bind()!");
        return true;
 }
 
@@ -338,6 +344,8 @@ bool BufferedSocket::DoConnect()
                }
                this->SetQueues(this->fd);
        }
+
+       Instance->Log(DEBUG,"BufferedSocket::DoConnect success");
        return true;
 }
 
@@ -526,8 +534,10 @@ bool BufferedSocket::FlushWriteBuffer()
        return (fd < 0);
 }
 
-void SocketTimeout::Tick(time_t now)
+void SocketTimeout::Tick(time_t)
 {
+       ServerInstance->Log(DEBUG,"SocketTimeout::Tick");
+
        if (ServerInstance->SE->GetRef(this->sfd) != this->sock)
                return;
 
@@ -664,9 +674,9 @@ int BufferedSocket::GetFd()
 }
 
 bool BufferedSocket::OnConnected() { return true; }
-void BufferedSocket::OnError(BufferedSocketError e) { return; }
+void BufferedSocket::OnError(BufferedSocketError) { return; }
 int BufferedSocket::OnDisconnect() { return 0; }
-int BufferedSocket::OnIncomingConnection(int newfd, char* ip) { return 0; }
+int BufferedSocket::OnIncomingConnection(int, char*) { return 0; }
 bool BufferedSocket::OnDataReady() { return true; }
 bool BufferedSocket::OnWriteReady() { return true; }
 void BufferedSocket::OnTimeout() { return; }