Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ set_nonblocking
Function
set_nonblocking
test/sockets/test_udp_echo.c:38–40 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
36
bool pong_sent = false;
37
38
void set_nonblocking(int fd) {
39
fcntl(fd, F_SETFL, O_NONBLOCK);
40
}
41
42
void test_success(void) {
43
printf(
"UDP ECHO PASS\n"
);
Callers
1
main
Function · 0.70
Calls
1
fcntl
Function · 0.50
Tested by
no test coverage detected