Function webrtc_ice::util::get_xormapped_addr

source ·
pub async fn get_xormapped_addr(
    conn: &Arc<dyn Conn + Send + Sync>,
    server_addr: SocketAddr,
    deadline: Duration
) -> Result<XorMappedAddress, Error>
Expand description

Initiates a stun requests to server_addr using conn, reads the response and returns the XORMappedAddress returned by the stun server. Adapted from stun v0.2.