Home
last modified time | relevance | path

Searched refs:serv_buf (Results 1 – 23 of 23) sorted by relevance

/third_party/libwebsockets/lib/core-net/
Dsocks5-client.c107 uint8_t *p = pt->serv_buf, *end = &p[context->pt_serv_buf_size]; in lws_socks5c_generate_msg()
188 *msg_len = lws_ptr_diff(p, pt->serv_buf); in lws_socks5c_generate_msg()
238 n = (int)send(wsi->desc.sockfd, (char *)pt->serv_buf, (size_t)plen, in lws_socks5c_greet()
271 n = (int)recv(wsi->desc.sockfd, (void *)pt->serv_buf, in lws_socks5c_handle_state()
288 if (pt->serv_buf[0] != SOCKS_VERSION_5) in lws_socks5c_handle_state()
291 if (pt->serv_buf[1] == SOCKS_AUTH_NO_AUTH) { in lws_socks5c_handle_state()
304 if (pt->serv_buf[1] == SOCKS_AUTH_USERNAME_PASSWORD) { in lws_socks5c_handle_state()
318 if (pt->serv_buf[0] != SOCKS_SUBNEGOTIATION_VERSION_1 || in lws_socks5c_handle_state()
319 pt->serv_buf[1] != in lws_socks5c_handle_state()
334 n = (int)send(wsi->desc.sockfd, (char *)pt->serv_buf, in lws_socks5c_handle_state()
[all …]
Dservice.c395 ebuf->token = pt->serv_buf + LWS_PRE; in lws_buflist_aware_read()
Dprivate-lib-core-net.h338 unsigned char *serv_buf; member
/third_party/libwebsockets/lib/core-net/client/
Dconnect4.c67 plen = lws_snprintf((char *)pt->serv_buf, 256, in lws_client_connect_4_established()
75 plen += lws_snprintf((char *)pt->serv_buf + plen, 256, in lws_client_connect_4_established()
80 plen += lws_snprintf((char *)pt->serv_buf + plen, 5, in lws_client_connect_4_established()
98 n = (int)send(wsi->desc.sockfd, (char *)pt->serv_buf, in lws_client_connect_4_established()
/third_party/libwebsockets/lib/roles/ws/
Dserver-ws.c56 if (lws_hdr_copy(wsi, (char *)pt->serv_buf, (int)context->pt_serv_buf_size, in lws_extension_server_handshake()
60 c = (char *)pt->serv_buf; in lws_extension_server_handshake()
81 if (c >= (char *)pt->serv_buf + 255) in lws_extension_server_handshake()
664 n = sprintf((char *)pt->serv_buf, in handshake_0405()
668 lws_SHA1(pt->serv_buf, (unsigned int)n, hash); in handshake_0405()
671 (char *)pt->serv_buf, (int)context->pt_serv_buf_size); in handshake_0405()
685 response = (char *)pt->serv_buf + MAX_WEBSOCKET_04_KEY_LEN + in handshake_0405()
692 strcpy(p, (char *)pt->serv_buf); in handshake_0405()
746 args.max_len = lws_ptr_diff((char *)pt->serv_buf + in handshake_0405()
Dclient-ws.c244 char *sb = (char *)&pt->serv_buf[0]; in lws_client_ws_upgrade()
Dops-ws.c1121 ebuf.token = pt->serv_buf; in rops_handle_POLLIN_ws()
/third_party/libwebsockets/lib/tls/
Dtls-client.c213 n = lws_ssl_client_connect1(wsi, (char *)wsi->a.context->pt[(int)wsi->tsi].serv_buf, in lws_client_create_tls()
220 *pcce = (const char *)wsi->a.context->pt[(int)wsi->tsi].serv_buf; in lws_client_create_tls()
Dtls-server.c194 s = recv(wsi->desc.sockfd, (char *)pt->serv_buf, in lws_server_socket_service_ssl()
221 if (s >= 1 && pt->serv_buf[0] >= ' ') { in lws_server_socket_service_ssl()
/third_party/libwebsockets/lib/tls/openssl/
Dopenssl-server.c223 (char *)vhost->context->pt[0].serv_buf);
242 (char *)vhost->context->pt[0].serv_buf);
387 (char *)vhost->context->pt[0].serv_buf));
400 (char *)vhost->context->pt[0].serv_buf));
521 (char *)vhost->context->pt[0].serv_buf);
537 (char *)vhost->context->pt[0].serv_buf);
Dopenssl-client.c604 char *p = (char *)&pt->serv_buf[0]; in lws_tls_client_confirm_peer_cert()
755 error, (char *)vh->context->pt[0].serv_buf);
863 error, (char *)vh->context->pt[0].serv_buf);
/third_party/libwebsockets/lib/tls/mbedtls/
Dmbedtls-client.c291 char *sb = (char *)&pt->serv_buf[0]; in lws_tls_client_confirm_peer_cert()
395 (char *)vh->context->pt[0].serv_buf)); in lws_tls_client_create_vhost_context()
404 (char *)vh->context->pt[0].serv_buf)); in lws_tls_client_create_vhost_context()
/third_party/libwebsockets/lib/plat/unix/
Dunix-resolv.c37 r = (char *)context->pt[0].serv_buf; in lws_plat_asyncdns_init()
/third_party/libwebsockets/lib/roles/mqtt/client/
Dclient-mqtt.c310 ebuf.token = pt->serv_buf; in lws_mqtt_client_socket_service()
/third_party/libwebsockets/lib/roles/http/server/
Dserver.c1036 unsigned char *start = pt->serv_buf + LWS_PRE, in lws_unauthorised_basic_auth()
1531 unsigned char *start = pt->serv_buf + LWS_PRE, *p = start, in lws_http_redirect_hit()
1721 unsigned char *start = pt->serv_buf + LWS_PRE, *p = start, in lws_http_action()
2719 unsigned char *response = pt->serv_buf + LWS_PRE; in lws_serve_http_file()
3073 p = pstart = pt->serv_buf + LWS_H2_FRAME_HEADER_LENGTH; in lws_serve_http_file_fragment()
/third_party/libwebsockets/lib/roles/mqtt/
Dmqtt.c1948 uint8_t *b = (uint8_t *)pt->serv_buf, *start, *p; in lws_mqtt_client_send_publish()
2101 uint8_t *b = (uint8_t *)pt->serv_buf + LWS_PRE, *start = b, *p = start; in lws_mqtt_client_send_subcribe()
2285 uint8_t *b = (uint8_t *)pt->serv_buf + LWS_PRE, *start = b, *p = start; in lws_mqtt_client_send_unsubcribe()
Dops-mqtt.c121 ebuf.token = pt->serv_buf; in rops_handle_POLLIN_mqtt()
/third_party/libwebsockets/lib/roles/http/
Dheader.c415 unsigned char *p = pt->serv_buf + LWS_PRE; in lws_return_http_status()
/third_party/libwebsockets/lib/roles/http/client/
Dclient-http.c38 char *p = (char *)&pt->serv_buf[0]; in lws_http_client_socket_service()
123 pt->serv_buf[13] = '\0'; in lws_http_client_socket_service()
/third_party/libwebsockets/lib/roles/h2/
Dops-h2.c230 ebuf.token = pt->serv_buf; in rops_handle_POLLIN_h2()
Dhttp2.c2544 p = start = buf = pt->serv_buf + LWS_PRE; in lws_h2_client_handshake()
/third_party/libwebsockets/lib/core/
Dcontext.c1100 context->pt[n].serv_buf = u; in lws_create_context()
/third_party/libwebsockets/READMEs/
DREADME.coding.md912 using -DLWS_MAX_SMP=, if not given it's set to 1. The serv_buf allocation