sendto function winsock
Sends data to a specific destination.
To learn more, see learn.microsoft.com/windows/win32/api/winsock/nf-winsock-sendto.
Implementation
Win32Result<int> sendto(
SOCKET s,
PCSTR buf,
int len,
int flags,
Pointer<SOCKADDR> to,
int tolen,
) {
final result_ = sendto_Wrapper(s, buf, len, flags, to, tolen);
return Win32Result(value: result_.value.i32, error: result_.error);
}