Lines Matching refs:parser_state
393 ctx->parser_state = WEBSOCKET_PARSER_STATE_OPCODE; in websocket_connect()
793 if (ctx->parser_state != WEBSOCKET_PARSER_STATE_PAYLOAD) { in websocket_parse()
796 switch (ctx->parser_state) { in websocket_parse()
802 ctx->parser_state = WEBSOCKET_PARSER_STATE_LENGTH; in websocket_parse()
812 ctx->parser_state = WEBSOCKET_PARSER_STATE_MASK; in websocket_parse()
815 ctx->parser_state = in websocket_parse()
823 ctx->parser_state = WEBSOCKET_PARSER_STATE_EXT_LEN; in websocket_parse()
833 ctx->parser_state = WEBSOCKET_PARSER_STATE_MASK; in websocket_parse()
836 ctx->parser_state = WEBSOCKET_PARSER_STATE_PAYLOAD; in websocket_parse()
846 ctx->parser_state = WEBSOCKET_PARSER_STATE_OPCODE; in websocket_parse()
849 ctx->parser_state = WEBSOCKET_PARSER_STATE_PAYLOAD; in websocket_parse()
858 if ((ctx->parser_state == WEBSOCKET_PARSER_STATE_PAYLOAD) || in websocket_parse()
859 ((ctx->parser_state == WEBSOCKET_PARSER_STATE_OPCODE) && in websocket_parse()
885 ctx->parser_state = WEBSOCKET_PARSER_STATE_OPCODE; in websocket_parse()
889 } while (ctx->parser_state != WEBSOCKET_PARSER_STATE_OPCODE); in websocket_parse()
1029 if ((ctx->parser_state == WEBSOCKET_PARSER_STATE_OPCODE) || in websocket_recv_msg()
1202 ctx->parser_state = WEBSOCKET_PARSER_STATE_OPCODE; in websocket_register()