Searched defs:has_ipv6 (Results 1 - 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
H A Dtest_socket.py38 SUPPORTS_IPV6 = socket.has_ipv6 and try_address('::1', family=socket.AF_INET6)
516 from socket import inet_pton, AF_INET6, has_ipv6 namespace
517 if not has_ipv6:
550 from socket import inet_ntop, AF_INET6, has_ipv6 namespace
551 if not has_ipv6:
/external/python/cpython2/Modules/
H A Dsocketmodule.c41 - socket.has_ipv6: boolean value indicating if IPv6 is supported
4604 PyObject *m, *has_ipv6; local
4651 has_ipv6 = Py_True;
4653 has_ipv6 = Py_False;
4655 Py_INCREF(has_ipv6);
4656 PyModule_AddObject(m, "has_ipv6", has_ipv6);

Completed in 240 milliseconds