Lines Matching refs:rval
104 int rval = -1; in parseUrl() local
107 rval = android_getaddrinfofornetwork(args.nethandle, in parseUrl()
113 rval = getaddrinfo(parameters->hostname.c_str(), in parseUrl()
123 if (rval != 0) { in parseUrl()
124 std::cerr << "DNS resolution failure; gaierror=" << rval in parseUrl()
125 << " [" << gai_strerror(rval) << "]" in parseUrl()
127 return rval; in parseUrl()
168 int rval = -1; in doHttpQuery() local
198 rval = recv(fd, buf, sizeof(buf), 0); in doHttpQuery()
200 if (rval < 0) { in doHttpQuery()
205 } else if (rval > 0) { in doHttpQuery()
206 std::cout.write(buf, rval); in doHttpQuery()
209 } while (rval > 0); in doHttpQuery()
217 int rval = -1; in main() local
220 if (!args.parseArguments(argc, argv)) { return rval; } in main()
223 rval = android_setprocnetwork(args.nethandle); in main()
224 if (rval != 0) { in main()
229 return rval; in main()