MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / sock_set_nonblock

Function sock_set_nonblock

server/src/server/http_server.cpp:55–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53#define SHUT_RDWR SD_BOTH
54#define socklen_t int
55#define poll(fds,nfds,timeout) WSAPoll(fds,nfds,timeout)
56// Replace fcntl(F_GETFL) / fcntl(F_SETFL, O_NONBLOCK) with ioctlsocket
57static inline int sock_get_flags(SocketHandle fd) { (void)fd; return 0; /* stub */ }
58static inline void sock_set_nonblock(SocketHandle fd) { u_long m = 1; ioctlsocket(fd, FIONBIO, &m); }

Callers 2

runMethod · 0.85
route_requestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected