Home | History | Annotate | Download | only in net

Lines Matching defs:proxy

569 android_read_hostent(FILE* proxy, struct hostent* hp, char* hbuf, size_t hbuflen, int *he)
573 if (fread(buf, 1, sizeof(buf), proxy) != sizeof(buf)) return NULL;
579 fread(&size, 1, sizeof(size), proxy);
584 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL;
594 if (fread(ptr, 1, size, proxy) != size) return NULL;
602 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL;
612 if (fread(ptr, 1, size, proxy) != size) return NULL;
630 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL;
633 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL;
640 if (fread(&size, 1, sizeof(size), proxy) != sizeof(size)) return NULL;
649 if (fread(ptr, 1, size, proxy) != size) return NULL;
795 FILE* proxy = fdopen(__netdClientDispatch.dnsOpenProxy(), "r+");
796 if (proxy == NULL) {
797 // Either we're not supposed to be using the proxy or the proxy is unavailable.
805 if (fprintf(proxy, "gethostbyname %u %s %d",
809 fclose(proxy);
813 if (fputc(0, proxy) == EOF || fflush(proxy) != 0) {
814 fclose(proxy);
818 struct hostent* result = android_read_hostent(proxy, hp, hbuf, hbuflen, errorp);
819 fclose(proxy);
898 FILE* proxy = fdopen(__netdClientDispatch.dnsOpenProxy(), "r+");
899 if (proxy == NULL) {
900 // Either we're not supposed to be using the proxy or the proxy is unavailable.
906 fclose(proxy);
912 if (fprintf(proxy, "gethostbyaddr %s %d %d %u",
914 fclose(proxy);
918 if (fputc(0, proxy) == EOF || fflush(proxy) != 0) {
919 fclose(proxy);
923 struct hostent *result = android_read_hostent(proxy, hp, hbuf, hbuflen, he);
924 fclose(proxy);
1557 // - In the proxy client context (proxy != NULL), |netid| is |app_netid|.
1558 // - In the proxy listener context (proxy == NULL), |netid| is |dns_netid|.
1561 // |proxy == NULL|, and use that info to query the field that matches the caller's intent.