Searched refs:nethandle (Results 1 – 5 of 5) sorted by relevance
/system/extras/multinetwork/ |
D | quick_test.sh | 3 nethandle=0 32 nethandle="$1" 34 echo "$PREFIX Using nethandle $nethandle ($(toHex $nethandle))" 38 adb shell /system/bin/dnschk --nethandle $nethandle $TEST_HOST | 46 adb shell /system/bin/httpurl --nethandle $nethandle "$url"
|
D | dnschk.cpp | 58 std::cout << "# " << name << " (via nethandle " << args.nethandle << "):" << std::endl; in main() 62 rval = android_getaddrinfofornetwork(args.nethandle, name.c_str(), nullptr, &hints, in main() 66 if (args.nethandle != NETWORK_UNSPECIFIED) { in main() 67 rval = android_setprocnetwork(args.nethandle); in main()
|
D | common.cpp | 37 bool parseNetworkHandle(const char *arg, net_handle_t *nethandle) { in parseNetworkHandle() argument 38 if (arg == nullptr || !isdigit(arg[0]) || nethandle == nullptr) { in parseNetworkHandle() 47 *nethandle = nh; in parseNetworkHandle() 76 if (!parseNetworkHandle(argv[i], &nethandle)) { in parseArguments()
|
D | httpurl.cpp | 119 rval = android_getaddrinfofornetwork(args.nethandle, in resolveHostname() 151 int makeTcpSocket(sa_family_t address_family, net_handle_t nethandle) { in makeTcpSocket() argument 164 if (nethandle != NETWORK_UNSPECIFIED) { in makeTcpSocket() 165 if (android_setsocknetwork(nethandle, fd) != 0) { in makeTcpSocket() 234 rval = android_setprocnetwork(args.nethandle); in main() 237 std::cerr << "android_setprocnetwork(" << args.nethandle << ") failed;" in main() 254 (args.api_mode == ApiMode::EXPLICIT) ? args.nethandle : NETWORK_UNSPECIFIED); in main()
|
D | common.h | 35 : nethandle(NETWORK_UNSPECIFIED), in Arguments() 45 net_handle_t nethandle; member
|