| 503 | } |
| 504 | |
| 505 | Result Send(Socket socket, const void* buffer, int length, int* sent_bytes) |
| 506 | { |
| 507 | *sent_bytes = 0; |
| 508 | int s = send(socket, (const char*)buffer, length, 0); |
| 509 | if (s < 0) |
| 510 | { |
| 511 | return NativeToResultCompat(DM_SOCKET_ERRNO); |
| 512 | } |
| 513 | else |
| 514 | { |
| 515 | *sent_bytes = s; |
| 516 | return RESULT_OK; |
| 517 | } |
| 518 | } |
| 519 | |
| 520 | Result SendTo(Socket socket, const void* buffer, int length, int* sent_bytes, Address to_addr, uint16_t to_port) |
| 521 | { |
nothing calls this directly
no test coverage detected