MCPcopy Create free account
hub / github.com/chen3feng/toft / Close

Method Close

system/net/socket.cpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61bool 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.

Callers

nothing calls this directly

Calls 1

closesocketFunction · 0.85

Tested by

no test coverage detected