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

Function SetSockoptBool

engine/dlib/src/dlib/socket_win32.cpp:279–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

277 }
278
279 static Result SetSockoptBool(Socket socket, int level, int name, bool option)
280 {
281 int on = (int)option;
282 int ret = setsockopt(socket, level, name, (char*)&on, sizeof(on));
283 return ret >= 0 ? RESULT_OK : NATIVETORESULT(DM_SOCKET_ERRNO);
284 }
285
286 Result SetReuseAddress(Socket socket, bool reuse)
287 {

Callers 3

SetReuseAddressFunction · 0.70
SetBroadcastFunction · 0.70
SetNoDelayFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected