/AliOS-Things-master/components/http/src/ |
A D | http_method_api.c | 17 client_data->is_redirected = 0; in httpclient_common() 29 if(client_data->is_redirected == 0) { in httpclient_common() 43 ret = httpclient_common(client, client_data->redirect_url, HTTP_GET, client_data); in httpclient_get() 47 free(client_data->redirect_url); in httpclient_get() 48 client_data->redirect_url = NULL; in httpclient_get() 59 ret = httpclient_common(client, client_data->redirect_url, HTTP_HEAD, client_data); in httpclient_head() 63 free(client_data->redirect_url); in httpclient_head() 64 client_data->redirect_url = NULL; in httpclient_head() 75 ret = httpclient_common(client, client_data->redirect_url, HTTP_POST, client_data); in httpclient_post() 79 free(client_data->redirect_url); in httpclient_post() [all …]
|
A D | http_client.c | 355 if (client_data->post_buf && client_data->post_buf_len) { in httpclient_send_userdata() 359 …if (http_ssl_send_wrapper(client, client_data->post_buf, client_data->post_buf_len) != client_data… in httpclient_send_userdata() 419 client_data->response_buf[client_data->response_buf_len - 1] = '\0'; in httpclient_retrieve_content() 420 client_data->content_block_len = client_data->response_buf_len - 1; in httpclient_retrieve_content() 452 if ( client_data->is_chunked && client_data->retrieve_len <= 0) { in httpclient_retrieve_content() 494 client_data->response_content_len += client_data->retrieve_len; in httpclient_retrieve_content() 528 client_data->content_block_len = client_data->response_buf_len - 1; in httpclient_retrieve_content() 688 client_data->retrieve_len = client_data->response_content_len; in httpclient_response_parse() 933 if (!client_data) in httpclient_prepare() 946 if (client_data->header_buf == NULL || client_data->response_buf == NULL){ in httpclient_prepare() [all …]
|
A D | http_formdata.c | 27 formdata_info_t* found_formdata_info(httpclient_data_t * client_data) { in found_formdata_info() argument 31 if((formdata_info[i].client_data == client_data) in found_formdata_info() 79 if((data_info = found_formdata_info(client_data)) == NULL) { in httpclient_formdata_addtext() 88 data_info->client_data = client_data; in httpclient_formdata_addtext() 163 void httpclient_clear_form_data(httpclient_data_t * client_data) in httpclient_clear_form_data() argument 168 data_info = found_formdata_info(client_data); in httpclient_clear_form_data() 201 if((data_info = found_formdata_info(client_data)) == NULL) { in httpclient_formdata_addfile() 210 data_info->client_data = client_data; in httpclient_formdata_addfile() 271 int httpclient_formdata_len(httpclient_data_t *client_data) in httpclient_formdata_len() argument 277 data_info = found_formdata_info(client_data); in httpclient_formdata_len() [all …]
|
/AliOS-Things-master/components/linkkit/infra/ |
A D | infra_httpc.c | 163 if (client_data->post_buf != NULL) { in _http_send_header() 196 if (client_data->post_buf && client_data->post_buf_len) { in _http_send_userdata() 292 client_data->response_buf[client_data->response_buf_len - 1] = '\0'; in _utils_fill_rx_buf() 293 client_data->retrieve_len -= in _utils_fill_rx_buf() 314 client_data->is_more = IOT_TRUE; in _http_get_response_body() 370 client_data->is_more = IOT_FALSE; in _http_get_response_body() 414 client_data->is_chunked = IOT_FALSE; in _http_parse_response_header() 444 client_data->retrieve_len = client_data->response_content_len; in _http_parse_response_header() 530 if (client_data->is_more) { in httpclient_recv_response() 535 client_data->is_more = 1; in httpclient_recv_response() [all …]
|
/AliOS-Things-master/components/py_engine/modules/network/http/ |
A D | modhttp.c | 205 client_data.response_buf = rsp_buf; in task_http_download_func() 207 client_data.header_buf = rsp_header; in task_http_download_func() 232 } while (client_data.is_more); in task_http_download_func() 292 client_data.response_buf = rsp_buf; in task_http_request_func() 311 client_data.response_buf, client_data.response_buf_len); in task_http_request_func() 320 client_data.response_buf, client_data.response_buf_len); in task_http_request_func() 329 client_data.post_buf = req_buf; in task_http_request_func() 335 client_data.response_buf, client_data.response_buf_len); in task_http_request_func() 350 client_data.response_buf, client_data.response_buf_len); in task_http_request_func() 365 client_data.response_buf, client_data.response_buf_len); in task_http_request_func() [all …]
|
A D | httputility.c | 160 httpclient_data_t client_data = { 0 }; in task_http_download_func() local 174 client_data.response_buf = rsp_buf; in task_http_download_func() 187 client_data.response_content_len, client_data.retrieve_len, in task_http_download_func() 196 } while (client_data.is_more); in task_http_download_func() 227 client_data.response_buf = rsp_buf; in task_http_request_func() 244 client_data.response_buf, client_data.response_buf_len); in task_http_request_func() 254 client_data.post_buf = req_buf; in task_http_request_func() 260 &client_data); in task_http_request_func() 263 client_data.response_buf, client_data.response_buf_len); in task_http_request_func() 274 client_data.response_buf, client_data.response_buf_len); in task_http_request_func() [all …]
|
A D | httpclient.c | 43 httpclient_data_t client_data; member 84 httpclient_data_t client_data = { 0 }; in http_client_new() local 87 http_client_obj->client_data = client_data; in http_client_new() 92 http_client_obj->client_data.header_buf = req_buf; in http_client_new() 96 http_client_obj->client_data.response_buf = rsp_buf; in http_client_new() 579 httpclient_data_t client_data = { 0 }; in task_http_download_func() local 596 client_data.response_buf = rsp_buf; in task_http_download_func() 597 client_data.response_buf_len = sizeof(rsp_buf); in task_http_download_func() 610 if (client_data.content_block_len > 0) { in task_http_download_func() 617 } while (client_data.is_more); in task_http_download_func() [all …]
|
/AliOS-Things-master/components/ota/ota_agent/download/ |
A D | ota_download_http.c | 66 if ((client != NULL) && (client_data != NULL)) { in ota_httpc_settings_init() 76 client_data->header_buf = (char *)head_buf; in ota_httpc_settings_init() 77 client_data->header_buf_len = sizeof(head_buf); in ota_httpc_settings_init() 80 client_data->response_buf = (char *)dl_buf; in ota_httpc_settings_init() 81 client_data->response_buf_len = sizeof(dl_buf); in ota_httpc_settings_init() 134 if (client == NULL || client_data == NULL) { in ota_httpc_recv_data() 137 ret = httpclient_recv(client, client_data); in ota_httpc_recv_data() 209 httpclient_data_t client_data = {0}; in ota_download_image_header() local 370 httpclient_data_t client_data = {0}; in ota_download_start() local 399 memset(&client_data, 0, sizeof(client_data)); in ota_download_start() [all …]
|
A D | ota_download_file2fs_http.c | 17 int ota_httpc_request_send(httpclient_t *client, char *url, httpclient_data_t *client_data); 18 int ota_httpc_recv_data(httpclient_t *client, httpclient_data_t *client_data); 19 int ota_httpc_settings_init(httpclient_t *client, httpclient_data_t *client_data); 48 httpclient_data_t client_data = {0}; in ota_download_store_fs_start() local 85 ret = ota_httpc_settings_init(&client, &client_data); in ota_download_store_fs_start() 105 ret = ota_httpc_request_send(&client, new_url, &client_data); in ota_download_store_fs_start() 113 ret = ota_httpc_recv_data(&client, &client_data); in ota_download_store_fs_start() 125 …if (0 == httpclient_get_response_header_value(client_data.header_buf, "Content-Length", (int *)&va… in ota_download_store_fs_start() 126 sscanf(client_data.header_buf + val_pos, "%d", &ota_file_size); in ota_download_store_fs_start() 129 ret = ota_fwrite(fd, client_data.response_buf, client_data.content_block_len); in ota_download_store_fs_start() [all …]
|
/AliOS-Things-master/components/amp/engine/duktape_engine/addons/network/http/ |
A D | module_http.c | 167 httpclient_data_t client_data = {0}; in task_http_download_func() local 179 client_data.response_buf = rsp_buf; in task_http_download_func() 189 … retrieve_len=%d,content_block_len=%d\n", client_data.response_content_len,client_data.retrieve_le… in task_http_download_func() 192 num = aos_write(fd, client_data.response_buf, client_data.content_block_len); in task_http_download_func() 196 }while(client_data.is_more); in task_http_download_func() 215 httpclient_data_t client_data = {0}; in task_http_request_func() local 227 client_data.response_buf = rsp_buf; in task_http_request_func() 249 client_data.post_buf = req_buf; in task_http_request_func() 259 client_data.post_buf = param->params; in task_http_request_func() 263 …amp_info(MOD_STR,"Data received: %s, len=%d \r\n", client_data.response_buf, client_data.response_… in task_http_request_func() [all …]
|
/AliOS-Things-master/components/http/include/ |
A D | httpclient.h | 96 HTTPC_RESULT httpclient_get(httpclient_t *client, const char *url, httpclient_data_t *client_data); 105 HTTPC_RESULT httpclient_head(httpclient_t *client, const char *url, httpclient_data_t *client_data); 114 HTTPC_RESULT httpclient_post(httpclient_t *client, const char *url, httpclient_data_t *client_data); 123 HTTPC_RESULT httpclient_put(httpclient_t *client, const char *url, httpclient_data_t *client_data); 132 …PC_RESULT httpclient_delete(httpclient_t *client, const char *url, httpclient_data_t *client_data); 142 HTTPC_RESULT httpclient_prepare(httpclient_data_t *client_data, int header_size, int resp_size); 150 HTTPC_RESULT httpclient_unprepare(httpclient_data_t *client_data); 157 void httpclient_reset(httpclient_data_t *client_data); 175 …httpclient_send(httpclient_t *client, const char *url, int method, httpclient_data_t *client_data); 183 HTTPC_RESULT httpclient_recv(httpclient_t *client, httpclient_data_t *client_data); [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/network/http/ |
A D | module_http.c | 153 httpclient_data_t client_data = { 0 }; in http_download_func() local 206 num = aos_write(fd, client_data.response_buf, client_data.content_block_len); in http_download_func() 213 } while (client_data.is_more); in http_download_func() 230 if (client_data.header_buf) { in http_download_func() 231 amp_free(client_data.header_buf); in http_download_func() 233 if (client_data.response_buf) { in http_download_func() 318 memset(client_data.header_buf, 0, sizeof(client_data.header_buf)); in task_http_request_func() 321 client_data.post_buf = client_data.header_buf; in task_http_request_func() 322 client_data.post_buf_len = sizeof(client_data.header_buf); in task_http_request_func() 370 if (client_data.header_buf) { in task_http_request_func() [all …]
|
/AliOS-Things-master/components/http/ |
A D | README.md | 111 |client_data |用户数据结构体指针| 122 |client_data |用户数据结构体指针| 126 void httpclient_reset(httpclient_data_t *client_data) 131 |client_data |用户数据结构体指针| 142 |client_data |用户数据结构体指针| 153 |client_data |用户数据结构体指针| 164 |client_data |用户数据结构体指针| 175 |client_data |用户数据结构体指针| 198 |client_data |用户数据结构体指针| 257 |client_data |用户字段指针| [all …]
|
/AliOS-Things-master/components/http/example/ |
A D | http_example.c | 23 httpclient_data_t client_data = {0}; in http_comp_example() local 33 client_data.header_buf = req_buf; in http_comp_example() 34 client_data.header_buf_len = sizeof(req_buf); in http_comp_example() 37 client_data.response_buf = rsp_buf; in http_comp_example() 38 client_data.response_buf_len = sizeof(rsp_buf); in http_comp_example() 43 ret = httpclient_get(&client, req_url, &client_data); in http_comp_example() 45 printf("Data received: %s \r\n", client_data.response_buf); in http_comp_example()
|
/AliOS-Things-master/components/http/internal/ |
A D | http_form_data.h | 25 httpclient_data_t *client_data; member 28 void httpclient_clear_form_data(httpclient_data_t * client_data); 29 int httpclient_formdata_len(httpclient_data_t *client_data); 30 int httpclient_send_formdata(httpclient_t *client, httpclient_data_t *client_data);
|
/AliOS-Things-master/components/uvoice/application/alicloudtts/ |
A D | alicloudtts.c | 182 httpclient_data_t client_data = { 0 }; in http_download() local 188 client_data.header_buf = req_buf; in http_download() 189 client_data.header_buf_len = 1024 + strlen(req_url); in http_download() 192 client_data.response_buf = rsp_buf; in http_download() 193 client_data.response_buf_len = 2048; in http_download() 197 ret = httpclient_send(&client, req_url, HTTP_GET, &client_data); in http_download() 200 ret = httpclient_recv(&client, &client_data); in http_download() 202 client_data.retrieve_len, client_data.content_block_len); in http_download() 203 M_LOGD("ismore = %d\n", client_data.is_more); in http_download() 205 … num = recv_cb->recv_data(client_data.response_buf, client_data.content_block_len, idx++); in http_download() [all …]
|
/AliOS-Things-master/components/py_engine/external/app_mgr/ |
A D | app_mgr.c | 104 httpclient_data_t client_data = { 0 }; in task_http_download_func() local 113 client_data.response_buf = rsp_buf; in task_http_download_func() 114 client_data.response_buf_len = sizeof(rsp_buf); in task_http_download_func() 119 ret = httpclient_send(&client, req_url, HTTP_GET, &client_data); in task_http_download_func() 122 ret = httpclient_recv(&client, &client_data); in task_http_download_func() 127 num = aos_write(fd, client_data.response_buf, client_data.content_block_len); in task_http_download_func() 131 } while (client_data.is_more); in task_http_download_func()
|
/AliOS-Things-master/components/ble_host/ble_profiles/ |
A D | uart_client.c | 108 node->client_data.uart_profile.notify_enabled = 1; in mtu_exchange() 325 …y_char(e->conn_handle, YOC_UART_RX_UUID, uart->client_data.uart_profile.uart_handle + 1, uart->cli… in service_discovery() 327 …ble_stack_gatt_discovery_descriptor(e->conn_handle, UUID_GATT_CCC, uart->client_data.uart_profile.… in service_discovery() 336 uart->client_data.uart_profile.notify_enabled = 1; in service_discovery() 351 uart->client_data.uart_profile.uart_handle = e->start_handle; in service_discovery() 352 uart->client_data.uart_profile.uart_end_handle = e->end_handle; in service_discovery() 358 uart->client_data.uart_profile.uart_char_handle = e->val_handle; in service_discovery() 364 uart->client_data.uart_profile.uart_ccc_handle = e->attr_handle; in service_discovery() 458 …if (data == NULL || length <= 0 || !uart || uart->conn_handle < 0 || !uart->client_data.uart_profi… in uart_client_send() 530 uart->client_data.client_conf.conn_def_on = 0; in uart_client_disconn() [all …]
|
/AliOS-Things-master/components/linkkit/include/linkkit/infra/ |
A D | infra_httpc.h | 95 const char *ca_crt, httpclient_data_t *client_data); 98 httpclient_data_t *client_data); 102 uint32_t timeout_ms, httpclient_data_t *client_data);
|
/AliOS-Things-master/components/ulog/src/ |
A D | ulog_session_file.c | 191 httpclient_data_t client_data = { 0 }; in on_fs_upload() local 196 client_data.header_buf = req_buf; in on_fs_upload() 197 client_data.header_buf_len = sizeof(req_buf); in on_fs_upload() 200 client_data.response_buf = rsp_buf; in on_fs_upload() 201 client_data.response_buf_len = sizeof(rsp_buf); in on_fs_upload() 203 client_data.post_buf = upload_stream; in on_fs_upload() 204 client_data.post_buf_len = n; in on_fs_upload() 205 client_data.post_content_type = "text/plain"; in on_fs_upload() 207 while (HTTP_SUCCESS != httpclient_put(httpc_handle, up_uri, &client_data)) { in on_fs_upload()
|
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/ |
A D | jcapimin.c | 51 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateCompress() local 54 cinfo->client_data = client_data; in jpeg_CreateCompress()
|
A D | jdapimin.c | 51 void * client_data = cinfo->client_data; /* ignore Purify complaint here */ in jpeg_CreateDecompress() local 54 cinfo->client_data = client_data; in jpeg_CreateDecompress()
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/tools/ |
A D | fax2tiff.c | 94 FAX_Client_Data client_data; in main() local 285 client_data.fh = _get_osfhandle(fileno(in)); in main() 287 client_data.fd = fileno(in); in main() 289 TIFFSetClientdata(faxTIFF, (thandle_t) &client_data); in main()
|
/AliOS-Things-master/components/ble_host/ble_profiles/include/yoc/ |
A D | uart_client.h | 40 uart_client client_data; member
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/lwip/src/include/lwip/ |
A D | netif.h | 219 #define netif_get_client_data(netif, id) (netif)->client_data[(id)] 281 void* client_data[LWIP_NETIF_CLIENT_DATA_INDEX_MAX + LWIP_NUM_NETIF_CLIENT_DATA]; member
|