From 4a91fd0ddfd7599001370fe6fe089d9ee33069ef Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 23 Aug 2007 22:30:46 +0000 Subject: Move the close() wrapper out of the win32wrapper.h, and into its new proper place at SocketEngine::Close() git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7812 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/socketengine_iocp.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src') diff --git a/src/socketengine_iocp.cpp b/src/socketengine_iocp.cpp index f1f4f0289..f7448f85f 100644 --- a/src/socketengine_iocp.cpp +++ b/src/socketengine_iocp.cpp @@ -504,4 +504,13 @@ int IOCPEngine::NonBlocking(int fd) ioctlsocket(s, FIONBIO, &opt); } +int IOCPEngine::Close(int fd) +{ + return closesocket(socket); +} + +int IOCPEngine::Close(EventHandler* fd) +{ + return this->Close(fd->GetFd()); +} -- cgit v1.2.3