MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sys_closesocket

Function sys_closesocket

components/lwp/lwp_syscall.c:6298–6301  ·  view source on GitHub ↗

* @brief Closes an open socket. * * This system call is used to close a previously opened socket. Once the socket is closed, it is no longer * valid for any further operations, such as sending, receiving, or other socket-related functions. * * @param[in] socket The socket descriptor to be closed. This descriptor must be a valid socket that was * previously created with `s

Source from the content-addressed store, hash-verified

6296 * @see sys_socket(), sys_shutdown()
6297 */
6298sysret_t sys_closesocket(int socket)
6299{
6300 return closesocket(socket);
6301}
6302
6303#endif
6304

Callers

nothing calls this directly

Calls 1

closesocketFunction · 0.85

Tested by

no test coverage detected