Home
last modified time | relevance | path

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

/hal_espressif-3.5.0/components/esp_http_server/src/
Dhttpd_main.c21 struct httpd_data *hd; member
26 static esp_err_t httpd_accept_conn(struct httpd_data *hd, int listen_fd) in httpd_accept_conn() argument
29 if (hd->config.lru_purge_enable == true) { in httpd_accept_conn()
30 if (!httpd_is_sess_available(hd)) { in httpd_accept_conn()
32 return httpd_sess_close_lru(hd); in httpd_accept_conn()
53 tv.tv_sec = hd->config.recv_wait_timeout; in httpd_accept_conn()
58 tv.tv_sec = hd->config.send_wait_timeout; in httpd_accept_conn()
62 if (ESP_OK != httpd_sess_new(hd, new_fd)) { in httpd_accept_conn()
86 struct httpd_data *hd = (struct httpd_data *) handle; in httpd_queue_work() local
93 int ret = cs_send_to_ctrl_sock(hd->msg_fd, hd->config.ctrl_port, &msg, sizeof(msg)); in httpd_queue_work()
[all …]
Dhttpd_sess.c35 struct httpd_data *hd; member
40 void httpd_sess_enum(struct httpd_data *hd, httpd_session_enum_function enum_function, void *contex… in httpd_sess_enum() argument
42 if ((!hd) || (!hd->hd_sd) || (!hd->config.max_open_sockets)) { in httpd_sess_enum()
46 struct sock_db *current = hd->hd_sd; in httpd_sess_enum()
47 struct sock_db *end = hd->hd_sd + hd->config.max_open_sockets - 1; in httpd_sess_enum()
101 httpd_sess_delete(ctx->hd, session); in enum_function()
119 httpd_sess_delete(ctx->hd, session); in enum_function()
144 struct httpd_data *hd = (struct httpd_data *) sock_db->handle; in httpd_sess_close() local
145 httpd_sess_delete(hd, sock_db); in httpd_sess_close()
148 struct sock_db *httpd_sess_get_free(struct httpd_data *hd) in httpd_sess_get_free() argument
[all …]
Dhttpd_uri.c85 static httpd_uri_t* httpd_find_uri_handler(struct httpd_data *hd, in httpd_find_uri_handler() argument
94 for (int i = 0; i < hd->config.max_uri_handlers; i++) { in httpd_find_uri_handler()
95 if (!hd->hd_calls[i]) { in httpd_find_uri_handler()
98 ESP_LOGD(TAG, LOG_FMT("[%d] = %s"), i, hd->hd_calls[i]->uri); in httpd_find_uri_handler()
102 if (hd->config.uri_match_fn ? in httpd_find_uri_handler()
103 hd->config.uri_match_fn(hd->hd_calls[i]->uri, uri, uri_len) : in httpd_find_uri_handler()
104 httpd_uri_match_simple(hd->hd_calls[i]->uri, uri, uri_len)) { in httpd_find_uri_handler()
106 if (hd->hd_calls[i]->method == method) { in httpd_find_uri_handler()
113 return hd->hd_calls[i]; in httpd_find_uri_handler()
133 struct httpd_data *hd = (struct httpd_data *) handle; in httpd_register_uri_handler() local
[all …]
Desp_httpd_priv.h139 void httpd_sess_enum(struct httpd_data *hd, httpd_session_enum_function enum_function, void *contex…
150 struct sock_db *httpd_sess_get_free(struct httpd_data *hd);
159 struct sock_db *httpd_sess_get(struct httpd_data *hd, int sockfd);
167 void httpd_sess_delete_invalid(struct httpd_data *hd);
174 void httpd_sess_init(struct httpd_data *hd);
187 esp_err_t httpd_sess_new(struct httpd_data *hd, int newfd);
199 esp_err_t httpd_sess_process(struct httpd_data *hd, struct sock_db *session);
208 void httpd_sess_delete(struct httpd_data *hd, struct sock_db *session);
227 void httpd_sess_set_descriptors(struct httpd_data *hd, fd_set *fdset, int *maxfd);
237 bool httpd_is_sess_available(struct httpd_data *hd);
[all …]
Dhttpd_txrx.c17 esp_err_t httpd_sess_set_send_override(httpd_handle_t hd, int sockfd, httpd_send_func_t send_func) in httpd_sess_set_send_override() argument
19 struct sock_db *sess = httpd_sess_get(hd, sockfd); in httpd_sess_set_send_override()
27 esp_err_t httpd_sess_set_recv_override(httpd_handle_t hd, int sockfd, httpd_recv_func_t recv_func) in httpd_sess_set_recv_override() argument
29 struct sock_db *sess = httpd_sess_get(hd, sockfd); in httpd_sess_set_recv_override()
37 esp_err_t httpd_sess_set_pending_override(httpd_handle_t hd, int sockfd, httpd_pending_func_t pendi… in httpd_sess_set_pending_override() argument
39 struct sock_db *sess = httpd_sess_get(hd, sockfd); in httpd_sess_set_pending_override()
173 struct httpd_data *hd = (struct httpd_data *) r->handle; in httpd_resp_set_hdr() local
176 if (ra->resp_hdrs_count >= hd->config.max_resp_headers) { in httpd_resp_set_hdr()
480 struct httpd_data *hd = (struct httpd_data *) handle; in httpd_register_err_handler() local
481 hd->err_handler_fns[error] = err_handler_fn; in httpd_register_err_handler()
[all …]
Dhttpd_parse.c617 static esp_err_t httpd_parse_req(struct httpd_data *hd) in httpd_parse_req() argument
619 httpd_req_t *r = &hd->hd_req; in httpd_parse_req()
659 return httpd_uri(hd); in httpd_parse_req()
723 esp_err_t httpd_req_new(struct httpd_data *hd, struct sock_db *sd) in httpd_req_new() argument
725 httpd_req_t *r = &hd->hd_req; in httpd_req_new()
726 init_req(r, &hd->config); in httpd_req_new()
727 init_req_aux(&hd->hd_req_aux, &hd->config); in httpd_req_new()
728 r->handle = hd; in httpd_req_new()
729 r->aux = &hd->hd_req_aux; in httpd_req_new()
781 ret = httpd_parse_req(hd); in httpd_req_new()
[all …]
Dhttpd_ws.c375 esp_err_t httpd_ws_send_frame_async(httpd_handle_t hd, int fd, httpd_ws_frame_t *frame) in httpd_ws_send_frame_async() argument
413 struct sock_db *sess = httpd_sess_get(hd, fd); in httpd_ws_send_frame_async()
419 if (sess->send_fn(hd, fd, (const char *)header_buf, tx_len, 0) < 0) { in httpd_ws_send_frame_async()
426 if (sess->send_fn(hd, fd, (const char *)frame->payload, frame->len, 0) < 0) { in httpd_ws_send_frame_async()
490 httpd_ws_client_info_t httpd_ws_get_fd_info(httpd_handle_t hd, int fd) in httpd_ws_get_fd_info() argument
492 struct sock_db *sess = httpd_sess_get(hd, fd); in httpd_ws_get_fd_info()
/hal_espressif-3.5.0/examples/protocols/http2_request/components/sh2lib/
Dsh2lib.c37 static ssize_t callback_send_inner(struct sh2lib_handle *hd, const uint8_t *data, in callback_send_inner() argument
40 int rv = esp_tls_conn_write(hd->http2_tls, data, length); in callback_send_inner()
55 struct sh2lib_handle *hd = user_data; in callback_send() local
63 int subrv = callback_send_inner(hd, data + copy_offset, chunk_len); in callback_send()
87 struct sh2lib_handle *hd = user_data; in callback_recv() local
89 rv = esp_tls_conn_read(hd->http2_tls, (char *)buf, (int)length); in callback_recv()
135 ESP_LOGD(TAG, "[frame-send] frame type %s", sh2lib_frame_type_str(frame->hd.type)); in callback_on_frame_send()
136 switch (frame->hd.type) { in callback_on_frame_send()
138 if (nghttp2_session_get_stream_user_data(session, frame->hd.stream_id)) { in callback_on_frame_send()
157 …D(TAG, "[frame-recv][sid: %d] frame type %s", frame->hd.stream_id, sh2lib_frame_type_str(frame->h… in callback_on_frame_recv()
[all …]
Dsh2lib.h106 int sh2lib_connect(struct sh2lib_config_t *cfg, struct sh2lib_handle *hd);
117 void sh2lib_free(struct sh2lib_handle *hd);
137 int sh2lib_do_get(struct sh2lib_handle *hd, const char *path, sh2lib_frame_data_recv_cb_t recv_cb);
159 int sh2lib_do_post(struct sh2lib_handle *hd, const char *path,
183 int sh2lib_do_put(struct sh2lib_handle *hd, const char *path,
201 int sh2lib_execute(struct sh2lib_handle *hd);
235 int sh2lib_do_get_with_nv(struct sh2lib_handle *hd, const nghttp2_nv *nva, size_t nvlen, sh2lib_fra…
266 int sh2lib_do_putpost_with_nv(struct sh2lib_handle *hd, const nghttp2_nv *nva, size_t nvlen,
/hal_espressif-3.5.0/components/esp_http_server/test/
Dtest_http_server.c45 void test_handler_limit(httpd_handle_t hd) in test_handler_limit() argument
58 TEST_ASSERT(httpd_register_uri_handler(hd, &uris[i]) == ESP_OK); in test_handler_limit()
62 TEST_ASSERT(httpd_register_uri_handler(hd, &uris[HTTPD_TEST_MAX_URI_HANDLERS]) != ESP_OK); in test_handler_limit()
65 TEST_ASSERT(httpd_unregister_uri_handler(hd, uris[0].uri, uris[0].method) == ESP_OK); in test_handler_limit()
68 TEST_ASSERT(httpd_unregister_uri_handler(hd, uris[0].uri, uris[0].method) != ESP_OK); in test_handler_limit()
71 TEST_ASSERT(httpd_register_uri_handler(hd, &uris[0]) == ESP_OK); in test_handler_limit()
74 TEST_ASSERT(httpd_register_uri_handler(hd, &uris[0]) != ESP_OK); in test_handler_limit()
77 TEST_ASSERT(httpd_register_uri_handler(hd, &uris[HTTPD_TEST_MAX_URI_HANDLERS]) != ESP_OK); in test_handler_limit()
81 TEST_ASSERT(httpd_unregister_uri_handler(hd, uris[i].uri, uris[i].method) == ESP_OK); in test_handler_limit()
90 httpd_handle_t hd; in test_httpd_start() local
[all …]
/hal_espressif-3.5.0/examples/protocols/http_server/advanced_tests/main/
Dtests.c15 httpd_handle_t hd; member
262 httpd_handle_t hd = resp_arg->hd; in generate_async_resp() local
273 httpd_socket_send(hd, fd, buf, strlen(buf), 0); in generate_async_resp()
275 httpd_socket_send(hd, fd, "\r\n", strlen("\r\n"), 0); in generate_async_resp()
276 httpd_socket_send(hd, fd, STR, strlen(STR), 0); in generate_async_resp()
289 resp_arg->hd = req->handle; in async_get_handler()
352 static void register_basic_handlers(httpd_handle_t hd) in register_basic_handlers() argument
358 if (httpd_register_uri_handler(hd, &basic_handlers[i]) != ESP_OK) { in register_basic_handlers()
369 httpd_handle_t hd; in test_httpd_start() local
378 if (httpd_start(&hd, &config) == ESP_OK) { in test_httpd_start()
[all …]
/hal_espressif-3.5.0/examples/protocols/https_server/wss_server/main/
Dwss_server_example.c27 httpd_handle_t hd; member
91 esp_err_t wss_open_fd(httpd_handle_t hd, int sockfd) in wss_open_fd() argument
94 wss_keep_alive_t h = httpd_get_global_user_ctx(hd); in wss_open_fd()
98 void wss_close_fd(httpd_handle_t hd, int sockfd) in wss_close_fd() argument
101 wss_keep_alive_t h = httpd_get_global_user_ctx(hd); in wss_close_fd()
119 httpd_handle_t hd = resp_arg->hd; in send_hello() local
127 httpd_ws_send_frame_async(hd, fd, &ws_pkt); in send_hello()
134 httpd_handle_t hd = resp_arg->hd; in send_ping() local
142 httpd_ws_send_frame_async(hd, fd, &ws_pkt); in send_ping()
157 resp_arg->hd = wss_keep_alive_get_user_ctx(h); in check_client_alive_cb()
[all …]
/hal_espressif-3.5.0/components/esp_http_server/include/
Desp_http_server.h99 typedef esp_err_t (*httpd_open_func_t)(httpd_handle_t hd, int sockfd);
110 typedef void (*httpd_close_func_t)(httpd_handle_t hd, int sockfd);
659 typedef int (*httpd_send_func_t)(httpd_handle_t hd, int sockfd, const char *buf, size_t buf_len, in…
681 typedef int (*httpd_recv_func_t)(httpd_handle_t hd, int sockfd, char *buf, size_t buf_len, int flag…
699 typedef int (*httpd_pending_func_t)(httpd_handle_t hd, int sockfd);
731 esp_err_t httpd_sess_set_recv_override(httpd_handle_t hd, int sockfd, httpd_recv_func_t recv_func);
751 esp_err_t httpd_sess_set_send_override(httpd_handle_t hd, int sockfd, httpd_send_func_t send_func);
771 esp_err_t httpd_sess_set_pending_override(httpd_handle_t hd, int sockfd, httpd_pending_func_t pendi…
1348 int httpd_socket_send(httpd_handle_t hd, int sockfd, const char *buf, size_t buf_len, int flags);
1372 int httpd_socket_recv(httpd_handle_t hd, int sockfd, char *buf, size_t buf_len, int flags);
[all …]
/hal_espressif-3.5.0/examples/protocols/http2_request/main/
Dhttp2_request_example_main.c110 struct sh2lib_handle hd; in http2_task() local
112 if (sh2lib_connect(&cfg, &hd) != 0) { in http2_task()
120 sh2lib_do_get(&hd, HTTP2_STREAMING_GET_PATH, handle_get_response); in http2_task()
123 if (sh2lib_execute(&hd) < 0) { in http2_task()
130 sh2lib_free(&hd); in http2_task()
/hal_espressif-3.5.0/examples/protocols/http_server/ws_echo_server/main/
Dws_echo_server.c33 httpd_handle_t hd; member
44 httpd_handle_t hd = resp_arg->hd; in ws_async_send() local
52 httpd_ws_send_frame_async(hd, fd, &ws_pkt); in ws_async_send()
59 resp_arg->hd = req->handle; in trigger_async_send()
/hal_espressif-3.5.0/examples/protocols/http_server/advanced_tests/main/include/
Dtests.h7 extern void stop_tests(httpd_handle_t hd);
/hal_espressif-3.5.0/examples/peripherals/spi_slave_hd/append_mode/master/
DMakefile6 PROJECT_NAME := spi-slave-hd-append-master
DCMakeLists.txt6 project(spi-slave-hd-append-master)
/hal_espressif-3.5.0/examples/peripherals/spi_slave_hd/append_mode/slave/
DCMakeLists.txt6 project(spi-slave-hd-append-slave)
/hal_espressif-3.5.0/components/esp_rom/patches/
Desp_rom_tjpgd.c496 const uint8_t *hb, *hd; in mcu_load() local
512 hd = jd->huffdata[id][0]; in mcu_load()
513 b = huffext(jd, hb, hc, hd); /* Extract a huffman coded data (bit length) */ in mcu_load()
531 hd = jd->huffdata[id][1]; in mcu_load()
534 b = huffext(jd, hb, hc, hd); /* Extract a huffman coded value (zero runs and bit length) */ in mcu_load()
/hal_espressif-3.5.0/components/bt/
Dcomponent.mk50 host/bluedroid/bta/hd/include \
92 host/bluedroid/bta/hd \
DCMakeLists.txt60 host/bluedroid/bta/hd/include
136 "host/bluedroid/bta/hd/bta_hd_api.c"
137 "host/bluedroid/bta/hd/bta_hd_act.c"
138 "host/bluedroid/bta/hd/bta_hd_main.c"
/hal_espressif-3.5.0/components/esptool_py/esptool/esptool/
D__init__.py966 clk, q, d, hd, cs = values
967 value = (hd << 24) | (cs << 18) | (d << 12) | (q << 6) | clk
/hal_espressif-3.5.0/components/fatfs/src/
Dff.c417 #define MKCVTBL(hd, cp) MERGE_2STR(hd, cp) argument
/hal_espressif-3.5.0/components/mbedtls/esp_crt_bundle/
Dcacrt_all.pem167 XJxgFyo6dIMzMH1hVBHL7avg5tKifvVrbxi3Cgst/ek+7wrGsxDp3MJGF/hd/aTa/55JWpzmM+Yk