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

Function ioctlsocket

components/net/sal/socket/net_sockets.c:833–838  ·  view source on GitHub ↗

* @brief Controls socket I/O modes. * * The 'ioctlsocket()' function manipulates the I/O mode of the socket specified by the file descriptor 's'. * It is primarily used to enable or disable non-blocking mode on a socket or to perform other socket-specific * operations. * * @param s The file descriptor of the socket to control. * @param cmd The command that specifies the operation to p

Source from the content-addressed store, hash-verified

831 * @see fcntl() Performs similar operations on UNIX-like systems.
832 */
833int ioctlsocket(int s, long cmd, void *arg)
834{
835 int socket = dfs_net_getsocket(s);
836
837 return sal_ioctlsocket(socket, cmd, arg);
838}
839RTM_EXPORT(ioctlsocket);

Callers 1

win_ioctlsocketFunction · 0.85

Calls 2

dfs_net_getsocketFunction · 0.85
sal_ioctlsocketFunction · 0.85

Tested by

no test coverage detected