Lines Matching refs:proxy
423 FILE* proxy = android_open_proxy(); in android_getaddrinfo_proxy() local
424 if (proxy == NULL) { in android_getaddrinfo_proxy()
431 if (fprintf(proxy, "getaddrinfo %s %s %d %d %d %d %u", in android_getaddrinfo_proxy()
442 if (fputc(0, proxy) == EOF || in android_getaddrinfo_proxy()
443 fflush(proxy) != 0) { in android_getaddrinfo_proxy()
449 if (fread(buf, 1, sizeof(buf), proxy) != sizeof(buf)) { in android_getaddrinfo_proxy()
456 fread(buf, 1, sizeof(buf), proxy); in android_getaddrinfo_proxy()
464 if (!readBE32(proxy, &have_more)) { in android_getaddrinfo_proxy()
493 readBE32(proxy, &ai->ai_flags) && in android_getaddrinfo_proxy()
494 readBE32(proxy, &ai->ai_family) && in android_getaddrinfo_proxy()
495 readBE32(proxy, &ai->ai_socktype) && in android_getaddrinfo_proxy()
496 readBE32(proxy, &ai->ai_protocol) && in android_getaddrinfo_proxy()
497 readBE32(proxy, &addr_len); in android_getaddrinfo_proxy()
509 if (fread(ai->ai_addr, addr_len, 1, proxy) != 1) { in android_getaddrinfo_proxy()
516 if (!readBE32(proxy, &name_len)) { in android_getaddrinfo_proxy()
521 if (fread(ai->ai_canonname, name_len, 1, proxy) != 1) { in android_getaddrinfo_proxy()
542 if (proxy != NULL) { in android_getaddrinfo_proxy()
543 fclose(proxy); in android_getaddrinfo_proxy()