Home
last modified time | relevance | path

Searched refs:lws_ptr_diff (Results 1 – 25 of 55) sorted by relevance

123

/external/libwebsockets/plugins/
Dprotocol_fulltext_demo.c161 p += lws_snprintf((char *)p, lws_ptr_diff(end, p), in callback_fts()
164 while (pss->ac && lws_ptr_diff(end, p) > 256) { in callback_fts()
165 p += lws_snprintf((char *)p, lws_ptr_diff(end, p), in callback_fts()
179 p += lws_snprintf((char *)p, lws_ptr_diff(end, p), in callback_fts()
183 while (pss->fp && lws_ptr_diff(end, p) > 256) { in callback_fts()
186 lws_ptr_diff(end, p), in callback_fts()
201 lws_ptr_diff(end, p) > 256) { in callback_fts()
204 lws_ptr_diff(end, p), in callback_fts()
227 p += lws_snprintf((char *)p, lws_ptr_diff(end, p), in callback_fts()
232 lws_ptr_diff(p, start), n) != in callback_fts()
[all …]
Dprotocol_lws_server_status.c68 p += lws_snprintf(p, lws_ptr_diff(end, p), "{\"i\":"); in update()
69 p += lws_json_dump_context(v->context, p, lws_ptr_diff(end, p), in update()
71 p += lws_snprintf(p, lws_ptr_diff(end, p), ", \"files\": ["); in update()
76 p += lws_snprintf(p, lws_ptr_diff(end, p), ","); in update()
89 p += lws_snprintf(p, lws_ptr_diff(end, p), in update()
96 p += lws_snprintf(p, lws_ptr_diff(end, p), "]}"); in update()
Dprotocol_post_demo.c161 return (int)lws_ptr_diff(p, start); in format_result()
227 n = lws_write(wsi, start, lws_ptr_diff(p, start), in callback_post_demo()
/external/libwebsockets/lib/core-net/
Ddetailed-latency.c64 p += lws_snprintf(p, lws_ptr_diff(end, p), in lws_det_lat_plot_cb()
76 write(context->latencies_fd, buf, lws_ptr_diff(p, buf)); in lws_det_lat_plot_cb()
Dsocks5-client.c111 if (lws_ptr_diff(end, p) < 4) in lws_socks5c_generate_msg()
130 if (lws_ptr_diff(end, p) < 3 + n + passwd_len) in lws_socks5c_generate_msg()
153 if (n > 254 || lws_ptr_diff(end, p) < 5 + n + 2) in lws_socks5c_generate_msg()
185 *msg_len = lws_ptr_diff(p, pt->serv_buf); in lws_socks5c_generate_msg()
Dnetwork.c650 skip_point = lws_ptr_diff(result, orig); in lws_parse_numeric_address()
673 return lws_ptr_diff(result, orig); in lws_parse_numeric_address()
675 return lws_ptr_diff(result, orig); in lws_parse_numeric_address()
677 int ow = lws_ptr_diff(result, orig); in lws_parse_numeric_address()
800 return lws_ptr_diff(buf, obuf); in lws_write_numeric_address()
Dstats.c146 p += lws_snprintf(p, lws_ptr_diff(end, p), "%28s: ", in lws_stats_log_dump()
150 quantify(context, m, p, lws_ptr_diff(end, p), n, &summary[n]); in lws_stats_log_dump()
Dclient.c51 if (lws_b64_encode_string(authstring, lws_ptr_diff(p, proxy), in lws_set_proxy()
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-dynamic/
Dminimal-http-server-dynamic.c148 while (lws_ptr_diff(end, p) > 80) in callback_dynamic_http()
157 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff(p, start), n) != in callback_dynamic_http()
158 lws_ptr_diff(p, start)) in callback_dynamic_http()
/external/libwebsockets/lib/system/async-dns/
Dasync-dns-parse.c80 lws_ptr_diff((ls + ll + 1), pkt), lws_ptr_diff(e, pkt)); in lws_adns_parse_label()
207 lws_ptr_diff(sp, stack[0].name)); in lws_adns_iterate()
256 n = lws_ptr_diff(sp, stack[0].name); in lws_adns_iterate()
334 lws_ptr_diff(sp, stack[stp].name)); in lws_adns_iterate()
358 stack[stp].enl = lws_ptr_diff(sp, stack[stp].name); in lws_adns_iterate()
/external/libwebsockets/lib/tls/
Dtls-network.c243 *plen = lws_ptr_diff(os, plen + 1); in lws_alpn_comma_to_openssl()
253 *plen = lws_ptr_diff(os, plen + 1); in lws_alpn_comma_to_openssl()
257 return lws_ptr_diff(os, oos); in lws_alpn_comma_to_openssl()
/external/libwebsockets/lib/roles/http/server/
Dlejp-conf.c284 n = lejp_get_wildcard(ctx, 0, a->p, lws_ptr_diff(a->end, a->p)); in lejp_globals_cb()
459 n = lejp_get_wildcard(ctx, 0, a->p, lws_ptr_diff(a->end, a->p)); in lejp_vhosts_cb()
480 lws_ptr_diff(a->end, a->p)); in lejp_vhosts_cb()
710 n = lejp_get_wildcard(ctx, 0, a->p, lws_ptr_diff(a->end, a->p)); in lejp_vhosts_cb()
727 n = lejp_get_wildcard(ctx, 1, a->p, lws_ptr_diff(a->end, a->p)); in lejp_vhosts_cb()
741 n = lejp_get_wildcard(ctx, 0, a->p, lws_ptr_diff(a->end, a->p)); in lejp_vhosts_cb()
756 n = lejp_get_wildcard(ctx, 0, a->p, lws_ptr_diff(a->end, a->p)); in lejp_vhosts_cb()
885 n = lws_ptr_diff(p1, p); in lejp_vhosts_cb()
887 n = lws_ptr_diff(a->end, a->p); in lejp_vhosts_cb()
1011 *len = lws_ptr_diff(a.end, a.p); in lwsws_get_config_globals()
[all …]
/external/libwebsockets/plugins/deaddrop/
Dprotocol_lws_deaddrop.c367 return (int)lws_ptr_diff(p, start); in format_result()
499 p += lws_snprintf((char *)p, lws_ptr_diff(end, p), in callback_deaddrop()
507 p += lws_snprintf((char *)p, lws_ptr_diff(end, p), in callback_deaddrop()
523 p += lws_snprintf((char *)p, lws_ptr_diff(end, p), in callback_deaddrop()
531 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()
/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()
101 LWS_WRITE_HTTP) != lws_ptr_diff(p, start)) in callback_sse()
/external/libwebsockets/lib/secure-streams/protocols/
Dss-h1.c452 buflen = lws_ptr_diff(end, p); in secstream_h1()
489 if (!f && !lws_ptr_diff(p, buf + LWS_PRE)) in secstream_h1()
496 lws_ptr_diff(p, buf + LWS_PRE), f); in secstream_h1()
498 if (lws_write(wsi, buf + LWS_PRE, lws_ptr_diff(p, buf + LWS_PRE), in secstream_h1()
499 LWS_WRITE_HTTP) != (int)lws_ptr_diff(p, buf + LWS_PRE)) { in secstream_h1()
/external/libwebsockets/plugins/ssh-base/
Dkex-25519.c116 return lws_ptr_diff(dest, odest); in lws_mpint_rfc4251()
489 lws_p32(lp, lws_ptr_diff(p, lp) - 4); in kex_ecdh()
501 lws_p32(lp, lws_ptr_diff(p, lp) - 4); in kex_ecdh()
506 *plen = lws_ptr_diff(p, reply); in kex_ecdh()
/external/libwebsockets/lib/core/
Dlibwebsockets.c91 return lws_ptr_diff(p, buf); in lws_vbi_encode()
106 return lws_ptr_diff(p, buf); in lws_vbi_decode()
152 return lws_ptr_diff(dest, odest); in lws_hex_to_byte_array()
431 *in_used = lws_ptr_diff(p, string); in lws_json_purify()
1168 return lws_snprintf(p, lws_ptr_diff(end, p), in lws_humanize()
1178 return lws_snprintf(p, lws_ptr_diff(end, p), in lws_humanize()
/external/libwebsockets/win32port/win32helpers/
Dgetopt_long.c41 #define lws_ptr_diff(head, tail) \ macro
189 current_argv_len = lws_ptr_diff(has_equal, current_argv);
/external/libwebsockets/lib/roles/http/
Dheader.c96 len = lws_ptr_diff(p, start); in lws_finalize_write_http_header()
457 m = lws_write(wsi, start, lws_ptr_diff(p, start), in lws_return_http_status()
459 if (m != lws_ptr_diff(p, start)) in lws_return_http_status()
486 n = lws_ptr_diff(p, start) + len; in lws_return_http_status()
/external/libwebsockets/lib/roles/mqtt/client/
Dclient-mqtt-handshake.c174 if (lws_write(wsi, (unsigned char *)&b[LWS_PRE], lws_ptr_diff(p, start), in lws_mqtt_client_send_connect()
175 LWS_WRITE_BINARY) != lws_ptr_diff(p, start)) { in lws_mqtt_client_send_connect()
/external/libwebsockets/minimal-examples/http-client/minimal-http-client-post/
Dminimal-http-client-post.c155 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff(p, start), n) in callback_http()
156 != lws_ptr_diff(p, start)) in callback_http()
/external/libwebsockets/lib/roles/http/client/
Dclient-http.c1002 *p += lws_snprintf((char *)(*p), lws_ptr_diff(end, p), in lws_client_http_multipart()
1010 *p += lws_snprintf((char *)(*p), lws_ptr_diff(end, p), "\xd\xa"); in lws_client_http_multipart()
1013 *p += lws_snprintf((char *)(*p), lws_ptr_diff(end, p), "--%s\xd\xa" in lws_client_http_multipart()
1018 *p += lws_snprintf((char *)(*p), lws_ptr_diff(end, p), in lws_client_http_multipart()
1022 *p += lws_snprintf((char *)(*p), lws_ptr_diff(end, p), "\xd\xa" in lws_client_http_multipart()
1025 *p += lws_snprintf((char *)(*p), lws_ptr_diff(end, p), "\xd\xa\xd\xa"); in lws_client_http_multipart()
/external/libwebsockets/minimal-examples/http-server/minimal-http-server-sse-ring/
Dminimal-http-server-sse-ring.c261 if (lws_write(wsi, (uint8_t *)start, lws_ptr_diff(p, start), in callback_sse()
262 LWS_WRITE_HTTP) != lws_ptr_diff(p, start)) in callback_sse()
/external/libwebsockets/lib/roles/ws/
Dserver-ws.c669 args.max_len = lws_ptr_diff((char *)pt->serv_buf + in handshake_0405()
685 lws_ptr_diff(p, response)); in handshake_0405()
977 assert((int)lws_ptr_diff(*buf, bin) <= (int)len); in lws_parse_ws()
978 len -= lws_ptr_diff(*buf, bin); in lws_parse_ws()
/external/libwebsockets/lib/roles/ws/ext/
Dextension-permessage-deflate.c344 pmdrx->eb_out.len = lws_ptr_diff(priv->rx.next_out, in lws_extension_callback_pm_deflate()
454 pmdrx->eb_out.len = lws_ptr_diff(priv->tx.next_out, in lws_extension_callback_pm_deflate()
489 pmdrx->eb_out.len = lws_ptr_diff(priv->tx.next_out, in lws_extension_callback_pm_deflate()

123