Expand description
Flag constants for the protocol.
Constants§
- ACK_
RESPONSE - ACK response flags: to_parent + is_response + is_ack = 0x23
- DIRECTION_
TO_ PARENT - Direction: to parent (1) or to child (0).
- ERROR_
RESPONSE - Error response flags: to_parent + is_response + is_error = 0x07
- IS_ACK
- ACK flag: acknowledgment only (1) or full response (0).
- IS_
ERROR - Error flag: error (1) or ok (0).
- IS_
RESPONSE - Message type: response (1) or request/event (0).
- IS_
STREAM - Stream flag: stream chunk (1) or single message (0).
- RESERVED_
MASK - Reserved bits mask (bits 6-7).
- RESPONSE
- Response flags: to_parent + is_response = 0x03
- STREAM_
CHUNK - Stream chunk flags: to_parent + is_response + is_stream = 0x0B
- STREAM_
END - Stream end flag: final chunk (1) or more coming (0).
- STREAM_
END_ RESPONSE - Stream end flags: to_parent + is_response + is_stream + stream_end = 0x1B
Functions§
- has_
flag - Check if a specific flag is set.