pub fn configure_endpoint_socket(
    std_socket: &UdpSocket,
    config: &TransportConfig
) -> Result<(), Box<dyn Error>>