Removes fd from set, shifting the later sockets down. A socket that is not in the set is ignored.
assert(socket_init());
s := socket(AF_INET, .SOCK_STREAM, .TCP);
defer close_and_reset(*s);
set: fd_set;
FD_SET(s, *set);
FD_CLR(s, *set);
assert(FD_ISSET(s, *set) == 0);Doesn't run in the browser (skipped on wasm).
FD_CLR :: (fd: Socket, set: *fd_set)
Parameters
FD_CLR :: (fd: s32, set: *fd_set)
Removes descriptor fd from set.
Parameters
- fd: s32
- set: *fd_set
FD_CLR :: (fd: s32, set: *fd_set)
Removes descriptor fd from set. Clearing a descriptor that is not in the set, or one at or beyond the set's capacity,
does nothing. A negative descriptor or a null set fails an assertion.
Parameters
- fd: s32
- set: *fd_set
set: fd_set;
FD_SET(7, *set);
FD_CLR(7, *set);
FD_CLR(7, *set);
assert(FD_ISSET(7, *set) == 0);Doesn't run in the browser (skipped on wasm).