Skip to main content

Module keepalive

Module keepalive 

Source
Expand description

KEEPALIVE message encoding and validation.

Constants§

KEEPALIVE_LEN
Size of an encoded KEEPALIVE message.

Functions§

encode_keepalive
Encode a KEEPALIVE message (19 bytes: header only).
validate_keepalive
Validate that a KEEPALIVE message has the correct length. KEEPALIVE is header-only — exactly 19 bytes, no body.