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

Function socket_setblocking

lib/lua/src/usocket.c:280–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278}
279
280T_ERRCODE socket_setblocking(p_socket sock) {
281 int flags = fcntl(*sock, F_GETFL, 0);
282 flags &= (~(O_NONBLOCK));
283 return fcntl(*sock, F_SETFL, flags) != -1 ? SUCCESS : errno;
284}
285
286////////////////////////////////////////////////////////////////////////////////
287// TCP

Callers 3

socket_destroyFunction · 0.85
socket_bindFunction · 0.85
socket_listenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected