Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions tests/test_radio_dish.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ static bool is_multicast_available (int ipv6_)
struct sockaddr_in *mcast_ipv4 = &mcast.ipv4;

any_ipv4->sin_family = AF_INET;
any_ipv4->sin_port = htons (5555);
any_ipv4->sin_port = htons (port);

rc = test_inet_pton (AF_INET, "0.0.0.0", &any_ipv4->sin_addr);
if (rc == 0) {
Expand Down Expand Up @@ -395,15 +395,23 @@ static bool is_multicast_available (int ipv6_)

msleep (SETTLE_TIME);

rc = sendto (send_sock, msg, static_cast<socklen_t> (strlen (msg)), 0,
#ifdef ZMQ_HAVE_WINDOWS
rc = sendto (send_sock, msg, static_cast<int> (strlen (msg)), 0,
&mcast.generic, sl);
#else
rc = sendto (send_sock, msg, strlen (msg), 0, &mcast.generic, sl);
#endif
if (rc < 0) {
goto out;
}

msleep (SETTLE_TIME);

#ifdef ZMQ_HAVE_WINDOWS
rc = recvfrom (bind_sock, buf, sizeof (buf) - 1, 0, NULL, 0);
#else
rc = recvfrom (bind_sock, buf, sizeof (buf) - 1, MSG_DONTWAIT, NULL, 0);
#endif
if (rc < 0) {
goto out;
}
Expand Down
Loading