* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * InspIRCd: (C) 2002-2009 InspIRCd Development Team
+ * InspIRCd: (C) 2002-2010 InspIRCd Development Team
* See: http://wiki.inspircd.org/Credits
*
* This program is free but copyrighted software; see
recvq.clear();
parent->OnNotify();
}
+
+ void OnError(BufferedSocketError)
+ {
+ ServerInstance->GlobalCulls.AddItem(this);
+ }
};
SocketThread::SocketThread()
socklen_t sz = sizeof(addr);
getsockname(listenFD, reinterpret_cast<struct sockaddr*>(&addr), &sz);
connect(connFD, reinterpret_cast<struct sockaddr*>(&addr), sz);
- int nfd = accept(listenFD);
+ int nfd = accept(listenFD, reinterpret_cast<struct sockaddr*>(&addr), (int*)sz);
if (nfd < 0)
throw CoreException("Could not create ITC pipe");
- new ThreadSignalSocket(parent, nfd);
+ new ThreadSignalSocket(this, nfd);
closesocket(listenFD);
ServerInstance->SE->Blocking(connFD);