diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-18 18:25:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-04-18 18:25:56 +0000 |
commit | 955dfd805df45f63aba037bcb506e1071afd54ef (patch) | |
tree | 7c33a2f1e84f882ae4df513c4a7b6c85864b5d5b /src/socketengines/socketengine_iocp.cpp | |
parent | 2b51823f8d4ae1bd84a4e8d9d9d0ac0858f88bf1 (diff) |
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
Diffstat (limited to 'src/socketengines/socketengine_iocp.cpp')
-rw-r--r-- | src/socketengines/socketengine_iocp.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
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()); } + |