pub fn format_udp_endpoint(endpoint: &UdpEndpoint) -> String
Formats a UDP endpoint with IPv6 bracket handling.