Lines Matching refs:type
165 mod_wstunnel_frame_type_t type, type_before, type_backend; member
544 hctx->frame.type = MOD_WEBSOCKET_FRAME_TYPE_BIN; in wstunnel_handler_setup()
550 hctx->frame.type = MOD_WEBSOCKET_FRAME_TYPE_TEXT; in wstunnel_handler_setup()
825 if (hctx->frame.type == MOD_WEBSOCKET_FRAME_TYPE_BIN) in create_response_rfc_6455()
892 static int send_ietf_00(handler_ctx *hctx, mod_wstunnel_frame_type_t type, const char *payload, siz… in send_ietf_00() argument
899 switch (type) { in send_ietf_00()
945 force_assert(c->type == MEM_CHUNK); in recv_ietf_00()
990 if (hctx->frame.type == MOD_WEBSOCKET_FRAME_TYPE_TEXT in recv_ietf_00()
1048 static int send_rfc_6455(handler_ctx *hctx, mod_wstunnel_frame_type_t type, const char *payload, si… in send_rfc_6455() argument
1053 if (payload == NULL && ( type == MOD_WEBSOCKET_FRAME_TYPE_TEXT in send_rfc_6455()
1054 || type == MOD_WEBSOCKET_FRAME_TYPE_BIN )) { in send_rfc_6455()
1058 switch (type) { in send_rfc_6455()
1132 force_assert(c->type == MEM_CHUNK); in recv_rfc_6455()
1139 hctx->frame.type = hctx->frame.type_before; in recv_rfc_6455()
1143 hctx->frame.type = MOD_WEBSOCKET_FRAME_TYPE_TEXT; in recv_rfc_6455()
1144 hctx->frame.type_before = hctx->frame.type; in recv_rfc_6455()
1148 hctx->frame.type = MOD_WEBSOCKET_FRAME_TYPE_BIN; in recv_rfc_6455()
1149 hctx->frame.type_before = hctx->frame.type; in recv_rfc_6455()
1153 hctx->frame.type = MOD_WEBSOCKET_FRAME_TYPE_PING; in recv_rfc_6455()
1157 hctx->frame.type = MOD_WEBSOCKET_FRAME_TYPE_PONG; in recv_rfc_6455()
1161 hctx->frame.type = MOD_WEBSOCKET_FRAME_TYPE_CLOSE; in recv_rfc_6455()
1208 if (hctx->frame.type == MOD_WEBSOCKET_FRAME_TYPE_PING && in recv_rfc_6455()
1225 if (hctx->frame.type == MOD_WEBSOCKET_FRAME_TYPE_PING && in recv_rfc_6455()
1262 switch (hctx->frame.type) { in recv_rfc_6455()
1304 int mod_wstunnel_frame_send(handler_ctx *hctx, mod_wstunnel_frame_type_t type, in mod_wstunnel_frame_send() argument
1307 if (hctx->hybivers >= 8) return send_rfc_6455(hctx, type, payload, siz); in mod_wstunnel_frame_send()
1310 if (0 == hctx->hybivers) return send_ietf_00(hctx, type, payload, siz); in mod_wstunnel_frame_send()