Function iroh_relay::protos::stun::parse_response

source ·
pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description

Parses a successful binding response STUN packet. The IP address is extracted from the XOR-MAPPED-ADDRESS attribute.