Home
last modified time | relevance | path

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

123

/third_party/libwebsockets/lib/core-net/
Ddummy-callback.c71 if (lws_write(wsi, (unsigned char *)buf + LWS_PRE, 0, in stream_close()
84 if (lws_write(wsi, (unsigned char *)buf + LWS_PRE, 5, in stream_close()
188 if (lws_write(wsi, ((unsigned char *)&pkt[1]) + in lws_callback_ws_proxy()
232 if (lws_write(wsi, ((unsigned char *)&pkt[1]) + in lws_callback_ws_proxy()
361 lws_write(wsi, (unsigned char *)buf + in lws_callback_http_dummy()
364 lws_write(wsi, (unsigned char *)buf + in lws_callback_http_dummy()
387 n = lws_write(wsi, wsi->http.pending_return_headers + in lws_callback_http_dummy()
478 n = lws_write(lws_get_parent(wsi), in lws_callback_http_dummy()
482 n = lws_write(lws_get_parent(wsi), (unsigned char *)in, in lws_callback_http_dummy()
702 lws_write(wsi, (unsigned char *)buf + LWS_PRE, 0, in lws_callback_http_dummy()
/third_party/libwebsockets/include/libwebsockets/
Dlws-write.h226 lws_write(struct lws *wsi, unsigned char *buf, size_t len,
231 lws_write(wsi, (unsigned char *)(buf), len, LWS_WRITE_HTTP)
/third_party/libwebsockets/lib/roles/http/
Dheader.c129 if (lws_write(wsi, start, (unsigned int)len, LWS_WRITE_HTTP_HEADERS) != len) in lws_finalize_write_http_header()
484 m = lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in lws_return_http_status()
515 m = lws_write(wsi, start, (unsigned int)n, LWS_WRITE_HTTP); in lws_return_http_status()
551 return lws_write(wsi, start, lws_ptr_diff_size_t(*p, start), in lws_http_redirect()
/third_party/libwebsockets/lib/roles/mqtt/client/
Dclient-mqtt-handshake.c170 if (lws_write(wsi, (unsigned char *)&b[LWS_PRE], lws_ptr_diff_size_t(p, start), in lws_mqtt_client_send_connect()
192 if (lws_write(wsi, (unsigned char *)&b[LWS_PRE], lws_ptr_diff_size_t(p, start), in lws_mqtt_client_send_disconnect()
/third_party/libwebsockets/plugins/
Dprotocol_post_demo.c238 n = lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_post_demo()
251 n = lws_write(wsi, (unsigned char *)start, (unsigned int)n, in callback_post_demo()
Dprotocol_lws_openmetrics_export.c529 if (lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_lws_openmetrics_export()
719 if (lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_lws_openmetrics_prox_agg()
918 if (lws_write(wsi, start, 1, in callback_lws_openmetrics_prox_server()
1071 if (lws_write(wsi, start, in callback_lws_openmetrics_prox_client()
1122 if (lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_lws_openmetrics_prox_client()
Dprotocol_dumb_increment.c78 m = lws_write(wsi, p, (unsigned int)n, LWS_WRITE_TEXT); in callback_dumb_increment()
Dprotocol_client_loopback_test.c144 n = lws_write(wsi, (unsigned char *)buf + LWS_PRE, in callback_client_loopback_test()
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd-corner/
Dprotocol_lws_minimal.c247 m = lws_write(wsi, buf + LWS_PRE, (unsigned int)corner_lengths[pss->last - 1], in callback_minimal()
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-raw-proxy/
Dminimal-ws-raw-proxy.c181 m = lws_write(wsi, data, msg->len, LWS_WRITE_TEXT); in callback_proxy_ws_server()
341 m = lws_write(wsi, data, msg->len, LWS_WRITE_TEXT); in callback_proxy_raw_client()
/third_party/libwebsockets/lib/roles/mqtt/
Dops-mqtt.c298 if (lws_write(wsi, (uint8_t *)&buf[LWS_PRE], 2, in rops_handle_POLLOUT_mqtt()
334 if (lws_write(wsi, (uint8_t *)&buf[LWS_PRE], 4, in rops_handle_POLLOUT_mqtt()
400 if (lws_write(wsi, (uint8_t *)&buf[LWS_PRE], 4, in rops_handle_POLLOUT_mqtt()
/third_party/libwebsockets/plugin-standalone/
Dprotocol_example_standalone.c100 m = lws_write(wsi, p, n, LWS_WRITE_TEXT); in callback_dumb_increment()
/third_party/libwebsockets/lib/roles/cgi/
Dcgi-server.c496 n = lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in lws_cgi_write_split_stdout_headers()
615 m = lws_write(wsi, in lws_cgi_write_split_stdout_headers()
867 m = lws_write(wsi, (unsigned char *)start, (unsigned int)n, (enum lws_write_protocol)cmd); in lws_cgi_write_split_stdout_headers()
882 if (lws_write(wsi, term + LWS_PRE, 5, in lws_cgi_write_split_stdout_headers()
894 m = lws_write(wsi, (unsigned char *)start, 0, in lws_cgi_write_split_stdout_headers()
/third_party/libwebsockets/test-apps/
Dtest-client.c275 n = lws_write(wsi, (unsigned char *)&buf[LWS_PRE], in callback_dumb_increment()
403 n = lws_write(wsi, &buf[LWS_PRE], block_size, in callback_lws_mirror()
431 n = (int)lws_write(wsi, &buf[LWS_PRE], (unsigned int)l, in callback_lws_mirror()
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-fallback-http-server/
Dminimal-raw-fallback-http-server.c76 lws_write(wsi, pss->buf, (unsigned int)pss->len, LWS_WRITE_HTTP); in callback_raw_echo()
/third_party/libwebsockets/plugins/deaddrop/
Dprotocol_lws_deaddrop.c540 n = lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_deaddrop()
637 n = lws_write(wsi, start, lws_ptr_diff_size_t(p, start), in callback_deaddrop()
650 n = lws_write(wsi, (unsigned char *)start, (unsigned int)n, in callback_deaddrop()
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-vhost/
Dminimal-raw-vhost.c88 if (lws_write(wsi, vhd->buf, (unsigned int)vhd->len, LWS_WRITE_RAW) != in callback_raw_test()
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server/
Dprotocol_lws_minimal.c105 m = lws_write(wsi, ((unsigned char *)vhd->amsg.payload) + in callback_minimal()
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-adopt-tcp/
Dminimal-raw-adopt-tcp.c63 if (lws_write(wsi, in callback_raw_test()
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-h2-long-poll/
Dminimal-http-server.c90 m = lws_write(wsi, p, (unsigned int)n, LWS_WRITE_HTTP); in callback_http()
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-sse/
Dminimal-http-server-sse.c106 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff_size_t(p, start), in callback_sse()
/third_party/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()
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-broker/
Dprotocol_lws_minimal.c136 m = lws_write(wsi, ((unsigned char *)pmsg->payload) + LWS_PRE, in callback_minimal()
/third_party/libwebsockets/minimal-examples/http-server/minimal-http-server-custom-headers/
Dminimal-http-server-custom-headers.c93 if (lws_write(wsi, (uint8_t *)pr, (unsigned int)pss->len, LWS_WRITE_HTTP_FINAL) != pss->len) in callback_http()
/third_party/libwebsockets/minimal-examples/ws-server/minimal-ws-server-pmd-bulk/
Dprotocol_lws_minimal_pmd_bulk.c161 m = lws_write(wsi, start, (unsigned int)n, (enum lws_write_protocol)flags); in callback_minimal_pmd_bulk()

123