mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 19:21:06 +00:00
commit
7ff25fe732
@ -338,11 +338,14 @@ bool netplay_lan_ad_server(netplay_t *netplay)
|
|||||||
snprintf(port_str, 6, "%hu", ntohs(((struct sockaddr_in*)(&their_addr))->sin_port));
|
snprintf(port_str, 6, "%hu", ntohs(((struct sockaddr_in*)(&their_addr))->sin_port));
|
||||||
if (getaddrinfo_retro(reply_addr, port_str, &hints, &our_addr) < 0)
|
if (getaddrinfo_retro(reply_addr, port_str, &hints, &our_addr) < 0)
|
||||||
continue;
|
continue;
|
||||||
RARCH_LOG ("[discovery] sending reply to %s \n", reply_addr);
|
else
|
||||||
|
{
|
||||||
|
RARCH_LOG ("[discovery] sending reply to %s \n", reply_addr);
|
||||||
|
|
||||||
/* And send it */
|
/* And send it */
|
||||||
sendto(lan_ad_server_fd, (const char*)&ad_packet_buffer,
|
sendto(lan_ad_server_fd, (const char*)&ad_packet_buffer,
|
||||||
sizeof(struct ad_packet), 0, our_addr->ai_addr, our_addr->ai_addrlen);
|
sizeof(struct ad_packet), 0, our_addr->ai_addr, our_addr->ai_addrlen);
|
||||||
|
}
|
||||||
if (our_addr)
|
if (our_addr)
|
||||||
freeaddrinfo_retro(our_addr);
|
freeaddrinfo_retro(our_addr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user