Searched refs:host_ptr (Results 1 – 3 of 3) sorted by relevance
/AliOS-Things-master/components/http/src/ |
A D | http_client.c | 40 char *host_ptr = NULL; in httpclient_parse_url() local 52 host_ptr = (char *) strstr(url, "://"); in httpclient_parse_url() 54 if (host_ptr == NULL) { in httpclient_parse_url() 64 scheme[host_ptr - scheme_ptr] = '\0'; in httpclient_parse_url() 66 host_ptr += 3; in httpclient_parse_url() 68 port_ptr = strchr(host_ptr, ':'); in httpclient_parse_url() 71 host_len = port_ptr - host_ptr; in httpclient_parse_url() 81 path_ptr = strchr(host_ptr, '/'); in httpclient_parse_url() 87 host_len = path_ptr - host_ptr; in httpclient_parse_url() 94 memcpy(host, host_ptr, host_len); in httpclient_parse_url() [all …]
|
/AliOS-Things-master/components/linkkit/infra/ |
A D | infra_httpc.c | 58 char *host_ptr = (char *)strstr(url, "://"); in _utils_parse_url() local 65 if (host_ptr == NULL) { in _utils_parse_url() 68 host_ptr += 3; in _utils_parse_url() 70 path_ptr = strchr(host_ptr, '/'); in _utils_parse_url() 76 host_len = path_ptr - host_ptr; in _utils_parse_url() 79 memcpy(host, host_ptr, host_len); in _utils_parse_url() 81 fragment_ptr = strchr(host_ptr, '#'); in _utils_parse_url()
|
/AliOS-Things-master/components/linksdk/components/ota/ |
A D | aiot_ota_api.c | 759 char *host_ptr = (char *) strstr(url, "://"); in _download_parse_url() local 765 if (host_ptr == NULL) { in _download_parse_url() 768 host_ptr += 3; in _download_parse_url() 770 path_ptr = strchr(host_ptr, '/'); in _download_parse_url() 776 host_len = path_ptr - host_ptr; in _download_parse_url() 783 memcpy(host, host_ptr, host_len); in _download_parse_url() 785 fragment_ptr = strchr(host_ptr, '#'); in _download_parse_url()
|
Completed in 12 milliseconds