Lines Matching refs:payload_len
606 uint8_t *payload, size_t payload_len, in websocket_prepare_and_send() argument
615 io_vector[1].iov_len = payload_len; in websocket_prepare_and_send()
624 if ((payload != NULL) && (payload_len > 0)) { in websocket_prepare_and_send()
625 LOG_HEXDUMP_DBG(payload, payload_len, "Payload"); in websocket_prepare_and_send()
652 int websocket_send_msg(int ws_sock, const uint8_t *payload, size_t payload_len, in websocket_send_msg() argument
685 NET_DBG("[%p] Len %zd %s/%d/%s", ctx, payload_len, opcode2str(opcode), in websocket_send_msg()
699 if (payload_len < 126) { in websocket_send_msg()
700 header[1] |= payload_len; in websocket_send_msg()
701 } else if (payload_len < 65536) { in websocket_send_msg()
703 header[2] = payload_len >> 8; in websocket_send_msg()
704 header[3] = payload_len; in websocket_send_msg()
712 header[6] = payload_len >> 24; in websocket_send_msg()
713 header[7] = payload_len >> 16; in websocket_send_msg()
714 header[8] = payload_len >> 8; in websocket_send_msg()
715 header[9] = payload_len; in websocket_send_msg()
730 if ((payload != NULL) && (payload_len > 0)) { in websocket_send_msg()
731 data_to_send = k_malloc(payload_len); in websocket_send_msg()
736 memcpy(data_to_send, payload, payload_len); in websocket_send_msg()
738 for (i = 0; i < payload_len; i++) { in websocket_send_msg()
745 data_to_send, payload_len, timeout); in websocket_send_msg()