Lines Matching refs:len
60 uint16_t len = ws->line_out.len; in ws_send() local
62 if (ws->line_out.len == 0) { in ws_send()
70 while (len > 0) { in ws_send()
71 ret = zsock_send(ws->fds[0].fd, msg, len, in ws_send()
77 memmove(ws->line_out.buf, msg, len); in ws_send()
78 ws->line_out.len = len; in ws_send()
90 len -= ret; in ws_send()
94 ws->line_out.len = 0; in ws_send()
117 size_t len, buf_left; in ws_recv() local
142 len = ret; in ws_recv()
143 ws->rx_len += len; in ws_recv()
292 if (lb->len + length - *cnt > WEBSOCKET_LINE_SIZE) { in sh_write()
293 copy_len = WEBSOCKET_LINE_SIZE - lb->len; in sh_write()
298 memcpy(lb->buf + lb->len, (uint8_t *)data + *cnt, copy_len); in sh_write()
299 lb->len += copy_len; in sh_write()
304 if (lb->buf[lb->len - 1] == '\n' || lb->len == WEBSOCKET_LINE_SIZE) { in sh_write()
315 if (lb->len > 0) { in sh_write()