Skip to main content

write_accept

Function write_accept 

Source
pub fn write_accept(
    out: &mut Vec<u8>,
    hs: &Handshake<'_>,
    protocol: Option<&[u8]>,
) -> Result<(), Error>
Expand description

Appends the 101 reply, choosing protocol (which must be one the client offered).