Home
last modified time | relevance | path

Searched refs:nethandle (Results 1 – 5 of 5) sorted by relevance

/system/extras/multinetwork/
Dquick_test.sh3 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"
Ddnschk.cpp45 << " (via nethandle " << args.nethandle << "):" in main()
50 rval = android_getaddrinfofornetwork(args.nethandle, in main()
54 if (args.nethandle != NETWORK_UNSPECIFIED) { in main()
55 rval = android_setprocnetwork(args.nethandle); in main()
Dcommon.cpp37 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()
78 if (!parseNetworkHandle(argv[i], &nethandle)) { in parseArguments()
Dhttpurl.cpp107 rval = android_getaddrinfofornetwork(args.nethandle, in parseUrl()
140 int makeTcpSocket(sa_family_t address_family, net_handle_t nethandle) { in makeTcpSocket() argument
153 if (nethandle != NETWORK_UNSPECIFIED) { in makeTcpSocket()
154 if (android_setsocknetwork(nethandle, fd) != 0) { in makeTcpSocket()
223 rval = android_setprocnetwork(args.nethandle); in main()
226 std::cerr << "android_setprocnetwork(" << args.nethandle << ") failed;" in main()
240 (args.api_mode == ApiMode::EXPLICIT) ? args.nethandle in main()
Dcommon.h34 Arguments() : nethandle(NETWORK_UNSPECIFIED), in Arguments()
42 net_handle_t nethandle; member