MCPcopy Create free account
hub / github.com/defold/defold / SetBlocking

Function SetBlocking

engine/dlib/src/dlib/socket_win32.cpp:691–712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689 }
690
691 Result SetBlocking(Socket socket, bool blocking)
692 {
693 u_long arg;
694 if (blocking)
695 {
696 arg = 0;
697 }
698 else
699 {
700 arg = 1;
701 }
702
703 int ret = ioctlsocket(socket, FIONBIO, &arg);
704 if (ret == 0)
705 {
706 return RESULT_OK;
707 }
708 else
709 {
710 return NATIVETORESULT(DM_SOCKET_ERRNO);
711 }
712 }
713
714 Result SetNoDelay(Socket socket, bool no_delay)
715 {

Callers 4

ConnectSocketFunction · 0.70
SetupMulticastCaptureFunction · 0.50
TcpServerThreadFunction · 0.50
TYPED_TESTFunction · 0.50

Calls

no outgoing calls

Tested by 3

SetupMulticastCaptureFunction · 0.40
TcpServerThreadFunction · 0.40
TYPED_TESTFunction · 0.40