diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-11 10:17:10 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-11 10:17:10 +0000 |
commit | 9530692eb0612c08ee01acc2601eb6b8139c1747 (patch) | |
tree | c4c063ee7d8ea086709fc7edce0c7ec51fbbf37c | |
parent | 3d005f6b57c9f73e3acdd8c57f69627f3dca1e9e (diff) |
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
-rw-r--r-- | src/threadengines/threadengine_win32.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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<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); |