Skip to main content

encode_binding_request

Function encode_binding_request 

Source
pub fn encode_binding_request(transaction_id: &[u8; 12]) -> Vec<u8> 
Expand description

A STUN Binding request: 20-byte header (type, length=0, cookie, 96-bit transaction id) and no attributes. transaction_id is caller-supplied so the response can be matched to the request.