From 9530692eb0612c08ee01acc2601eb6b8139c1747 Mon Sep 17 00:00:00 2001 From: peavey Date: Sun, 11 Oct 2009 10:17:10 +0000 Subject: Fixes for SocketThread, missing overload, and a left in deprecated variable. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11832 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/threadengines/threadengine_win32.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/threadengines') diff --git a/src/threadengines/threadengine_win32.cpp b/src/threadengines/threadengine_win32.cpp index 6134abd67..532f50f55 100644 --- a/src/threadengines/threadengine_win32.cpp +++ b/src/threadengines/threadengine_win32.cpp @@ -65,6 +65,10 @@ class ThreadSignalSocket : public BufferedSocket recvq.clear(); parent->OnNotify(); } + + void OnError(BufferedSocketError) + { + } }; SocketThread::SocketThread() @@ -84,10 +88,10 @@ SocketThread::SocketThread() socklen_t sz = sizeof(addr); getsockname(listenFD, reinterpret_cast(&addr), &sz); connect(connFD, reinterpret_cast(&addr), sz); - int nfd = accept(listenFD); + int nfd = accept(listenFD, reinterpret_cast(&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); -- cgit v1.2.3