Module protocol

Source
Expand description

build connection & read/write frame utils

Structs§

StatusCode
helper struct for using close code

Enums§

Mode
websocket connection mode

Functions§

cal_accept_key
cal accept key
gen_key
generate random key
handle_handshake
handle protocol handshake
handle_parse_handshake
parse http request, used by server building
perform_parse_req
parse protocol response
prepare_handshake
build protocol http reqeust
req_handshake
perform http upgrade
standard_handshake_req_check
perform rfc standard check
standard_handshake_resp_check
perform standard protocol handshake response check