| 490 | } |
| 491 | |
| 492 | Result Shutdown(Socket socket, ShutdownType how) |
| 493 | { |
| 494 | int ret = shutdown(socket, ShutdownTypeToNative(how)); |
| 495 | if (ret < 0) |
| 496 | { |
| 497 | return NATIVETORESULT(DM_SOCKET_ERRNO); |
| 498 | } |
| 499 | else |
| 500 | { |
| 501 | return RESULT_OK; |
| 502 | } |
| 503 | } |
| 504 | |
| 505 | Result Send(Socket socket, const void* buffer, int length, int* sent_bytes) |
| 506 | { |
no test coverage detected