Skip to content

Commit

Permalink
Allow udp socket sending without address
Browse files Browse the repository at this point in the history
  • Loading branch information
jellefoks committed Oct 16, 2024
1 parent 810e8f3 commit 1a7efcd
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions starboard/shared/win32/socket_send_to.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,6 @@ int SbSocketSendTo(SbSocket socket,
socket->error = sbwin32::TranslateSocketErrorStatus(last_error);
return -1;
} else if (socket->protocol == kSbSocketProtocolUdp) {
if (!destination) {
SB_DLOG(FATAL) << "No destination passed to UDP send.";
socket->error = kSbSocketErrorFailed;
return -1;
}

sbwin32::SockAddr sock_addr;
const sockaddr* sockaddr = nullptr;
socklen_t sockaddr_length = 0;
Expand Down

0 comments on commit 1a7efcd

Please sign in to comment.