MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / socket_would_block

Function socket_would_block

src/ui/httpd.c:125–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123}
124
125static bool socket_would_block(void) {
126#ifdef _WIN32
127 int error = WSAGetLastError();
128 return error == WSAEWOULDBLOCK || error == WSAEINTR;
129#else
130 return errno == EAGAIN || errno == EWOULDBLOCK || errno == EINTR;
131#endif
132}
133
134static bool socket_set_nonblocking(cbm_sock_t fd) {
135#ifdef _WIN32

Callers 2

send_allFunction · 0.85
cbm_httpd_read_requestFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected