diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/socketengine_iocp.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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()); +} |