Skip to main content

bind_udp_search_socket

Function bind_udp_search_socket 

Source
pub fn bind_udp_search_socket(addr: SocketAddr) -> Result<UdpSocket>
Expand description

Bind the fixed UDP search port with SO_REUSEADDR (and SO_REUSEPORT on Unix) so other local PVA consumers such as p4p can also listen on the same well-known port. On macOS in particular, a plain UdpSocket::bind(5076) prevents any subsequent binder from joining the port, which broke co-located clients.