MCPcopy Create free account
hub / github.com/apache/thrift / socket_setnonblocking

Function socket_setnonblocking

lib/lua/src/usocket.c:274–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272// Util
273
274T_ERRCODE socket_setnonblocking(p_socket sock) {
275 int flags = fcntl(*sock, F_GETFL, 0);
276 flags |= O_NONBLOCK;
277 return fcntl(*sock, F_SETFL, flags) != -1 ? SUCCESS : errno;
278}
279
280T_ERRCODE socket_setblocking(p_socket sock) {
281 int flags = fcntl(*sock, F_GETFL, 0);

Callers 5

l_socket_createFunction · 0.85
l_socket_acceptFunction · 0.85
socket_bindFunction · 0.85
socket_listenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected