From 955dfd805df45f63aba037bcb506e1071afd54ef Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 18 Apr 2008 18:25:56 +0000 Subject: Apply patches to remove 200-odd dll limit on windows, made by GreenReaper, lots of thanks! git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9533 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengines/socketengine_iocp.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/socketengines') diff --git a/src/socketengines/socketengine_iocp.cpp b/src/socketengines/socketengine_iocp.cpp index 9ae394e56..c1e97ce74 100644 --- a/src/socketengines/socketengine_iocp.cpp +++ b/src/socketengines/socketengine_iocp.cpp @@ -455,7 +455,7 @@ EventHandler * IOCPEngine::GetIntRef(int fd) int IOCPEngine::Accept(EventHandler* fd, sockaddr *addr, socklen_t *addrlen) { - SOCKET s = fd->GetFd(); + //SOCKET s = fd->GetFd(); Overlapped* acceptevent = NULL; if (!fd->GetExt("windows_acceptevent", acceptevent)) @@ -465,7 +465,7 @@ int IOCPEngine::Accept(EventHandler* fd, sockaddr *addr, socklen_t *addrlen) Overlapped* ovl = acceptevent; accept_overlap* ov = (accept_overlap*)ovl->m_params; - sockaddr_in* server_address = (sockaddr_in*)&ov->buf[10]; + //sockaddr_in* server_address = (sockaddr_in*)&ov->buf[10]; sockaddr_in* client_address = (sockaddr_in*)&ov->buf[38]; memcpy(addr, client_address, sizeof(sockaddr_in)); @@ -484,7 +484,7 @@ int IOCPEngine::GetSockName(EventHandler* fd, sockaddr *name, socklen_t* namelen accept_overlap* ov = (accept_overlap*)ovl->m_params; sockaddr_in* server_address = (sockaddr_in*)&ov->buf[10]; - sockaddr_in* client_address = (sockaddr_in*)&ov->buf[38]; + //sockaddr_in* client_address = (sockaddr_in*)&ov->buf[38]; memcpy(name, server_address, sizeof(sockaddr_in)); *namelen = sizeof(sockaddr_in); @@ -524,3 +524,4 @@ int IOCPEngine::Close(EventHandler* fd) return this->Close(fd->GetFd()); } + -- cgit v1.2.3