/external/okhttp/mockwebserver/src/main/java/com/squareup/okhttp/internal/ |
H A D | SslContextBuilder.java | 36 * self-signed certificate for a single hostname such as "localhost". 42 private static SSLContext localhost; // Lazily initialized. field in class:SslContextBuilder 44 /** Returns a new SSL context for this host's current localhost address. */ 45 public static synchronized SSLContext localhost() { method in class:SslContextBuilder 46 if (localhost != null) return localhost; 52 .commonName(InetAddress.getByName("localhost").getHostName()) 55 localhost = new SslContextBuilder() 60 return localhost;
|
/external/python/cpython3/Lib/test/ |
H A D | test_timeout.py | 113 localhost = support.HOST variable in class:TimeoutTestCase 245 support.bind_port(self.sock, self.localhost) 252 support.bind_port(serv, self.localhost) 261 support.bind_port(serv, self.localhost) 271 support.bind_port(serv, self.localhost) 290 support.bind_port(self.sock, self.localhost)
|
/external/libcups/cups/ |
H A D | ppd-util.c | 139 char localhost[HTTP_MAX_URI],/* Local hostname */ local 185 strlcpy(hostname, "localhost", sizeof(hostname)); 188 if (!_cups_strcasecmp(hostname, "localhost")) 300 if (cupsServer()[0] == '/' && !_cups_strcasecmp(hostname, "localhost") && port == ippPort()) 303 * Redirect localhost to domain socket... 313 * Remap local hostname to localhost... 316 httpGetHostname(NULL, localhost, sizeof(localhost)); 318 DEBUG_printf(("2cupsGetPPD3: Local hostname=\"%s\"", localhost)); 320 if (!_cups_strcasecmp(localhost, hostnam [all...] |
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/ |
H A D | TestKeyStore.java | 161 private static final String LOCAL_HOST_NAME = "localhost"; 162 private static final String LOCAL_HOST_NAME_IPV6 = "ip6-localhost"; 562 // Default to localhost if nothing was specified. 564 subject = localhost(); 651 private X500Principal localhost() { method in class:TestKeyStore.Builder
|
/external/curl/lib/ |
H A D | smtp.c | 1506 char localhost[HOSTNAME_MAX + 1]; local 1510 if(!Curl_gethostname(localhost, sizeof(localhost))) 1511 path = localhost; 1513 path = "localhost";
|
/external/python/cpython2/Lib/ |
H A D | urllib.py | 38 "localhost", "thishost", "ftperrors", "basejoin", "unwrap", 466 if url[:2] == '//' and url[2:3] != '/' and url[2:12].lower() != 'localhost/': 500 and socket.gethostbyname(host) in (localhost(), thishost()): 818 def localhost(): function 819 """Return the IP address of the magic hostname 'localhost'.""" 822 _localhost = socket.gethostbyname('localhost') 833 _thishost = socket.gethostbyname('localhost') 1615 # '<local>' string by the localhost entry and the corresponding
|
H A D | urllib2.py | 125 from urllib import localhost, url2pathname, getproxies, proxy_bypass namespace 1332 req.host != 'localhost'): 1338 # names for the localhost 1344 socket.gethostbyname_ex('localhost')[2] + 1347 FileHandler.names = (socket.gethostbyname('localhost'),)
|
/external/libevent/test/ |
H A D | regress_bufferevent.c | 644 fake_listener_create(struct sockaddr_in *localhost) argument 646 struct sockaddr *sa = (struct sockaddr *)localhost; 648 ev_socklen_t slen = sizeof(*localhost); 650 memset(localhost, 0, sizeof(*localhost)); 651 localhost->sin_port = 0; /* have the kernel pick a port */ 652 localhost->sin_addr.s_addr = htonl(0x7f000001L); 653 localhost->sin_family = AF_INET; 657 fd = socket(localhost->sin_family, SOCK_STREAM, 0); 718 struct sockaddr_in localhost; local 797 struct sockaddr_in localhost; local 867 struct sockaddr_in localhost; local 1120 struct sockaddr_in localhost; local [all...] |
/external/python/cpython3/Lib/urllib/ |
H A D | request.py | 1448 req.host != 'localhost'): 1450 raise URLError("file:// scheme is supported only on localhost") 1454 # names for the localhost 1460 socket.gethostbyname_ex('localhost')[2] + 1463 FileHandler.names = (socket.gethostbyname('localhost'),) 1978 if url[:2] == '//' and url[2:3] != '/' and url[2:12].lower() != 'localhost/': 1979 raise ValueError("file:// scheme is supported only on localhost") 2006 and socket.gethostbyname(host) in ((localhost(),) + thishost())): 2330 def localhost(): function 2331 """Return the IP address of the magic hostname 'localhost' [all...] |
/external/webrtc/webrtc/p2p/base/ |
H A D | port_unittest.cc | 1543 Port* localhost = ports[3].get(); local 1547 ExpectPortsCanConnect(false, link_local1, localhost); 1548 ExpectPortsCanConnect(false, localhost, link_local1); 1551 ExpectPortsCanConnect(true, localhost, standard); 1552 ExpectPortsCanConnect(true, standard, localhost);
|