Skip to content

Commit

Permalink
windows is the worst
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentHouliston committed Sep 26, 2023
1 parent 7bb2352 commit 5c02bed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/extension/network/NUClearNetwork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ namespace extension {

// Send the packet
if (::sendto(data_fd,
announce_packet.data(),
reinterpret_cast<const char*>(announce_packet.data()),
static_cast<socklen_t>(announce_packet.size()),
0,
&it->second->target.sock,
Expand Down Expand Up @@ -595,7 +595,7 @@ namespace extension {

// Say hi back!
::sendto(data_fd,
announce_packet.data(),
reinterpret_cast<const char*>(announce_packet.data()),
static_cast<socklen_t>(announce_packet.size()),
0,
&ptr->target.sock,
Expand Down Expand Up @@ -688,7 +688,7 @@ namespace extension {

// Send the packet
::sendto(data_fd,
r.data(),
reinterpret_cast<const char*>(r.data()),
static_cast<socklen_t>(r.size()),
0,
&to.sock,
Expand Down Expand Up @@ -771,7 +771,7 @@ namespace extension {

// Send the packet
::sendto(data_fd,
r.data(),
reinterpret_cast<const char*>(r.data()),
static_cast<socklen_t>(r.size()),
0,
&to.sock,
Expand Down Expand Up @@ -807,7 +807,7 @@ namespace extension {

// Send the packet
::sendto(data_fd,
r.data(),
reinterpret_cast<const char*>(r.data()),
static_cast<socklen_t>(r.size()),
0,
&to.sock,
Expand Down

0 comments on commit 5c02bed

Please sign in to comment.