| 59 | } |
| 60 | |
| 61 | bool Socket::Close() |
| 62 | { |
| 63 | if (IsValid()) |
| 64 | { |
| 65 | SOCKET fd = m_handle; |
| 66 | m_handle = kInvalidHandle; |
| 67 | return CheckError(closesocket(fd), "Close"); |
| 68 | } |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | /* Set the FD_CLOEXEC flag of desc if value is nonzero, |
| 73 | or clear the flag if value is 0. |
nothing calls this directly
no test coverage detected