13 #ifndef __STOUT_OS_WINDOWS_CLOSE_HPP__ 14 #define __STOUT_OS_WINDOWS_CLOSE_HPP__ 38 if (::CloseHandle(fd) == FALSE) {
47 if (::
shutdown(fd, SD_BOTH) == SOCKET_ERROR &&
48 WSAGetLastError() != WSAENOTCONN) {
52 if (::closesocket(fd) == SOCKET_ERROR) {
65 #endif // __STOUT_OS_WINDOWS_CLOSE_HPP__ Definition: nothing.hpp:16
Definition: error.hpp:123
Definition: error.hpp:108
Definition: posix_signalhandler.hpp:23
Try< Nothing > close(int fd)
Definition: close.hpp:24
#define UNREACHABLE()
Definition: unreachable.hpp:22
int int_fd
Definition: int_fd.hpp:35