Skip to main content

parse_reply

Function parse_reply 

Source
pub fn parse_reply(datagram: &[u8]) -> Option<Reply>
Expand description

Read a STUN reply, or None if the datagram is not one.

Requests are not decoded: sipx is a STUN client here. A Binding Request arriving on a SIP socket is something else’s business, and answering it would make sipx a STUN server by accident.