Home | History | Annotate | Download | only in test

Lines Matching refs:first_byte

157         first_byte = ord(data[pos])
159 opcode = (first_byte >> 5) & 0x7
164 block.encode = (first_byte >> 2) & 3
165 block.rejected = (first_byte >> 4) & 1
171 size_of_size = (first_byte & 3) + 1
178 block.mux_error = (first_byte >> 4) & 1
184 size_of_size = first_byte & 3
194 size_of_quota = (first_byte & 3) + 1
199 size_of_slots = ((first_byte >> 2) & 3) + 1
200 size_of_quota = (first_byte & 3) + 1
263 first_byte = ((_MUX_OPCODE_ADD_CHANNEL_REQUEST << 5) | (encoding << 2) |
267 return (chr(first_byte) + _encode_channel_id(channel_id) +
273 first_byte = ((_MUX_OPCODE_FLOW_CONTROL << 5) | size_of_quota)
274 return (chr(first_byte) + _encode_channel_id(channel_id) +
405 first_byte = ord(data[0])
406 fin = (first_byte << 7) & 1
407 rsv1 = (first_byte << 6) & 1
408 rsv2 = (first_byte << 5) & 1
409 rsv3 = (first_byte << 4) & 1
410 opcode = first_byte & 0xf
664 first_byte = (end << 7) | client_for_testing.OPCODE_BINARY
666 first_byte = (end << 7) | client_for_testing.OPCODE_TEXT
679 payload = _encode_channel_id(channel_id) + chr(first_byte) + message
712 first_byte = (1 << 7) | client_for_testing.OPCODE_CLOSE
713 payload = _encode_channel_id(channel_id) + chr(first_byte) + body