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

Function ShutdownTypeToNative

engine/dlib/src/dlib/socket_win32.cpp:478–490  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476 }
477
478 static int ShutdownTypeToNative(ShutdownType type)
479 {
480 switch (type)
481 {
482 case SHUTDOWNTYPE_READ:
483 return SD_RECEIVE;
484 case SHUTDOWNTYPE_WRITE:
485 return SD_SEND;
486 case SHUTDOWNTYPE_READWRITE:
487 return SD_BOTH;
488 }
489 return 0;
490 }
491
492 Result Shutdown(Socket socket, ShutdownType how)
493 {

Callers 1

ShutdownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected