Home
last modified time | relevance | path

Searched refs:lws_write (Results 1 – 25 of 74) sorted by relevance

123

/external/libwebsockets/lib/core-net/
Ddummy-callback.c61 if (lws_write(wsi, (unsigned char *)buf + LWS_PRE, 0, in stream_close()
75 if (lws_write(wsi, (unsigned char *)buf + LWS_PRE, 5, in stream_close()
177 if (lws_write(wsi, ((unsigned char *)&pkt[1]) + in lws_callback_ws_proxy()
221 if (lws_write(wsi, ((unsigned char *)&pkt[1]) + in lws_callback_ws_proxy()
337 lws_write(wsi, (unsigned char *)buf + in lws_callback_http_dummy()
340 lws_write(wsi, (unsigned char *)buf + in lws_callback_http_dummy()
362 n = lws_write(wsi, wsi->http.pending_return_headers + in lws_callback_http_dummy()
453 n = lws_write(lws_get_parent(wsi), in lws_callback_http_dummy()
457 n = lws_write(lws_get_parent(wsi), (unsigned char *)in, in lws_callback_http_dummy()
675 lws_write(wsi, (unsigned char *)buf + LWS_PRE, 0, in lws_callback_http_dummy()
/external/libwebsockets/include/libwebsockets/
Dlws-write.h214 lws_write(struct lws *wsi, unsigned char *buf, size_t len,
219 lws_write(wsi, (unsigned char *)(buf), len, LWS_WRITE_HTTP)
/external/libwebsockets/lib/roles/http/
Dheader.c101 if (lws_write(wsi, start, len, LWS_WRITE_HTTP_HEADERS) != len) in lws_finalize_write_http_header()
457 m = lws_write(wsi, start, lws_ptr_diff(p, start), in lws_return_http_status()
488 m = lws_write(wsi, start, n, LWS_WRITE_HTTP); in lws_return_http_status()
524 return lws_write(wsi, start, *p - start, LWS_WRITE_HTTP_HEADERS | in lws_http_redirect()
/external/libwebsockets/plugins/
Dprotocol_post_demo.c227 n = lws_write(wsi, start, lws_ptr_diff(p, start), in callback_post_demo()
240 n = lws_write(wsi, (unsigned char *)start, n, in callback_post_demo()
Dprotocol_esp32_lws_ota.c240 n = lws_write(wsi, start, p - start, LWS_WRITE_HTTP_HEADERS | LWS_WRITE_H2_STREAM_END); in callback_esplws_ota()
252 n = lws_write(wsi, (unsigned char *)pss->result + LWS_PRE, in callback_esplws_ota()
Dprotocol_client_loopback_test.c140 n = lws_write(wsi, (unsigned char *)buf + LWS_PRE, in callback_client_loopback_test()
Dprotocol_dumb_increment.c74 m = lws_write(wsi, p, n, LWS_WRITE_TEXT); in callback_dumb_increment()
/external/libwebsockets/plugins/generic-sessions/
Dprotocol_lws_messageboard.c278 if (lws_write(wsi, (unsigned char *)start, p - start, in callback_messageboard()
327 n = lws_write(wsi, (unsigned char *)s, 1, LWS_WRITE_HTTP| in callback_messageboard()
355 n = lws_write(wsi, start, p - start, LWS_WRITE_HTTP_HEADERS); in callback_messageboard()
/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd-corner/
Dprotocol_lws_minimal.c247 m = lws_write(wsi, buf + LWS_PRE, corner_lengths[pss->last - 1], in callback_minimal()
/external/libwebsockets/lib/roles/cgi/
Dcgi-server.c450 n = lws_write(wsi, start, p - start, in lws_cgi_write_split_stdout_headers()
569 m = lws_write(wsi, in lws_cgi_write_split_stdout_headers()
812 m = lws_write(wsi, (unsigned char *)start, n, cmd); in lws_cgi_write_split_stdout_headers()
827 if (lws_write(wsi, term + LWS_PRE, 5, in lws_cgi_write_split_stdout_headers()
839 m = lws_write(wsi, (unsigned char *)start, 0, in lws_cgi_write_split_stdout_headers()
/external/libwebsockets/test-apps/
Dtest-client.c261 n = lws_write(wsi, (unsigned char *)&buf[LWS_PRE], in callback_dumb_increment()
381 n = lws_write(wsi, &buf[LWS_PRE], block_size, in callback_lws_mirror()
409 n = lws_write(wsi, &buf[LWS_PRE], l, in callback_lws_mirror()
/external/libwebsockets/plugin-standalone/
Dprotocol_example_standalone.c94 m = lws_write(wsi, p, n, LWS_WRITE_TEXT); in callback_dumb_increment()
/external/libwebsockets/minimal-examples/raw/minimal-raw-fallback-http-server/
Dminimal-raw-fallback-http-server.c76 lws_write(wsi, pss->buf, pss->len, LWS_WRITE_HTTP); in callback_raw_echo()
/external/libwebsockets/minimal-examples/raw/minimal-raw-adopt-tcp/
Dminimal-raw-adopt-tcp.c61 if (lws_write(wsi, in callback_raw_test()
/external/libwebsockets/minimal-examples/raw/minimal-raw-vhost/
Dminimal-raw-vhost.c88 if (lws_write(wsi, vhd->buf, vhd->len, LWS_WRITE_RAW) != in callback_raw_test()
/external/libwebsockets/plugins/deaddrop/
Dprotocol_lws_deaddrop.c531 n = lws_write(wsi, start, lws_ptr_diff(p, start), in callback_deaddrop()
627 n = lws_write(wsi, start, lws_ptr_diff(p, start), in callback_deaddrop()
640 n = lws_write(wsi, (unsigned char *)start, n, in callback_deaddrop()
/external/libwebsockets/lib/secure-streams/protocols/
Dss-ws.c110 if (lws_write(wsi, buf + LWS_PRE, buflen, f1) != (int)buflen) { in secstream_ws()
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-h2-long-poll/
Dminimal-http-server.c91 m = lws_write(wsi, p, n, LWS_WRITE_HTTP); in callback_http()
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-sse/
Dminimal-http-server-sse.c100 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff(p, start), in callback_sse()
/external/libwebsockets/plugins/generic-table/
Dprotocol_table_dirlisting.c224 if (lws_write(wsi, (unsigned char *)start, strlen(start), in callback_lws_table_dirlisting()
330 if (lws_write(wsi, (unsigned char *)start, p - start, in callback_lws_table_dirlisting()
/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd/
Dprotocol_lws_minimal.c111 m = lws_write(wsi, ((unsigned char *)vhd->amsg.payload) + in callback_minimal()
/external/libwebsockets/minimal-examples/ws-server/minimal-ws-server/
Dprotocol_lws_minimal.c105 m = lws_write(wsi, ((unsigned char *)vhd->amsg.payload) + in callback_minimal()
/external/libwebsockets/lib/roles/mqtt/
Dops-mqtt.c299 if (lws_write(wsi, (uint8_t *)&buf[LWS_PRE], 2, in rops_handle_POLLOUT_mqtt()
364 if (lws_write(wsi, (uint8_t *)&buf[LWS_PRE], 4, in rops_handle_POLLOUT_mqtt()
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-custom-headers/
Dminimal-http-server-custom-headers.c92 if (lws_write(wsi, (uint8_t *)pr, pss->len, LWS_WRITE_HTTP_FINAL) != pss->len) in callback_http()
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-dynamic/
Dminimal-http-server-dynamic.c157 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff(p, start), n) != in callback_dynamic_http()

123