/external/chromium_org/third_party/libjingle/source/talk/base/ |
socketaddress_unittest.cc | 57 EXPECT_EQ("", addr.hostname()); 65 EXPECT_EQ("", addr.hostname()); 74 EXPECT_EQ("1.2.3.4", addr.hostname()); 85 EXPECT_EQ(kTestV6AddrString, addr2.hostname()); 95 EXPECT_EQ("255.255.255.255", addr.hostname()); 104 EXPECT_EQ("a.b.com", addr.hostname()); 114 EXPECT_EQ("1.2.3.4", addr.hostname()); 125 EXPECT_EQ("1.2.3.4", addr.hostname()); 136 EXPECT_EQ("", addr.hostname()); 147 EXPECT_EQ("1.2.3.4", addr.hostname()); [all...] |
nethelpers.cc | 41 int ResolveHostname(const std::string& hostname, int family, 52 int ret = getaddrinfo(hostname.c_str(), NULL, &hints, &result); 74 error_ = ResolveHostname(addr_.hostname().c_str(), addr_.family(),
|
socketaddress.cc | 60 SocketAddress::SocketAddress(const std::string& hostname, int port) { 61 SetIP(hostname); 118 void SocketAddress::SetIP(const std::string& hostname) { 119 hostname_ = hostname; 120 literal_ = IPFromString(hostname, &ip_); 155 // If the hostname was a literal IP string, it may need to have square 167 // If the hostname was a literal IP string, it may need to have square 336 bool SocketAddress::StringToIP(const std::string& hostname, uint32* ip) { 338 if (talk_base::inet_pton(AF_INET, hostname.c_str(), &addr) == 0) 344 bool SocketAddress::StringToIP(const std::string& hostname, IPAddress* ip) [all...] |
/external/chromium_org/webkit/common/database/ |
database_identifier_unittest.cc | 45 // This tests the encoding of a hostname including every character in the range 49 std::string hostname; member in struct:webkit_database::__anon17233::Case 154 GURL origin("http://" + cases[i].hostname); 158 << "test case " << i << " :\"" << cases[i].hostname << "\""; 163 << "test case " << i << " :\"" << cases[i].hostname << "\""; 209 EXPECT_EQ(valid_cases[i].expected_host, identifier.hostname())
|
/external/chromium_org/net/tools/quic/test_tools/ |
quic_test_client.cc | 30 const string& hostname, 132 QuicTestClient::QuicTestClient(IPEndPoint address, const string& hostname, 134 : client_(new QuicEpollClient(address, hostname, version)) { 135 Initialize(address, hostname, true); 139 const string& hostname, 142 : client_(new QuicEpollClient(address, hostname, version)) { 143 Initialize(address, hostname, secure); 147 const string& hostname, 151 : client_(new QuicEpollClient(address, hostname, config, version)) { 152 Initialize(address, hostname, secure) [all...] |
/external/chromium_org/chrome/browser/net/ |
chrome_fraudulent_certificate_reporter_unittest.cc | 81 // Passes if invoked with a good SSLInfo and for a hostname that is a Google 83 virtual void SendReport(const std::string& hostname, 88 hostname, sni_available)); 106 // Passes if invoked with a bad SSLInfo and for a hostname that is not a 108 virtual void SendReport(const std::string& hostname, 113 hostname, sni_available)); 144 const std::string& hostname, 147 DCHECK(!hostname.empty()); 149 ChromeFraudulentCertificateReporter::SendReport(hostname, ssl_info,
|
/external/chromium_org/content/test/net/ |
url_request_prepackaged_interceptor.cc | 41 Delegate(const std::string& scheme, const std::string& hostname) 42 : scheme_(scheme), hostname_(hostname), hit_count_(0) {} 53 const std::string& hostname) { 55 hostname); 59 // hostname and scheme of |url| must match the corresponding parameters 133 const std::string& hostname) 135 hostname_(hostname), 136 delegate_(new Delegate(scheme, hostname)) {
|
url_request_prepackaged_interceptor.h | 25 // Registers an interceptor for urls using |scheme| and |hostname|. Urls 26 // passed to "SetResponse" are required to use |scheme| and |hostname|. 28 const std::string& hostname); 32 // hostname and scheme of |url| must match the corresponding parameters 57 // hostname is "localhost".
|
/external/chromium_org/net/quic/test_tools/ |
crypto_test_utils_openssl.cc | 39 virtual bool Sign(const string& hostname, 44 HostnameToKey(hostname)); 97 virtual string GetKeyForHostname(const string& hostname) OVERRIDE { 99 HostnameToKey(hostname)); 104 static EVP_PKEY* HostnameToKey(const string& hostname) { 105 // In order to generate a deterministic key for a given hostname the 106 // hostname is hashed with SHA-256 and the resulting digest is treated as a 113 SHA256_Update(&sha256, hostname.data(), hostname.size());
|
/external/dnsmasq/src/ |
helper.c | 113 char *p, *action_str, *hostname = NULL; local 255 hostname = (char *)buf; 256 hostname[data.hostname_len - 1] = 0; 257 if (!legal_hostname(hostname)) 258 hostname = NULL; 259 else if ((dot = strchr(hostname, '.'))) 266 if (data.action == ACTION_OLD_HOSTNAME && hostname) 268 my_setenv("DNSMASQ_OLD_HOSTNAME", hostname, &err); 269 hostname = NULL; 282 action_str, daemon->dhcp_buff, inet_ntoa(data.addr), hostname, (char*)NULL) [all...] |
/external/chromium_org/net/dns/ |
host_resolver_impl_unittest.cc | 54 ResolveKey(const std::string& hostname, AddressFamily address_family) 55 : hostname(hostname), address_family(address_family) {} 58 (address_family == other.address_family && hostname < other.hostname); 60 std::string hostname; member in struct:net::__anon11096::MockHostResolverProc::ResolveKey 101 void AddRule(const std::string& hostname, AddressFamily family, 104 rules_[ResolveKey(hostname, family)] = result; 107 void AddRule(const std::string& hostname, AddressFamily family, 112 AddRule(hostname, family, result) 658 std::string hostname = "a_"; local 812 std::string hostname = req->info().hostname(); local 908 std::string hostname; local 1525 std::string hostname = base::StringPrintf("nx_%u", i); local 1559 std::string hostname = (i % 2) == 0 ? base::StringPrintf("nx_%u", i) local [all...] |
dns_test_util.cc | 34 const std::string& hostname, 38 hostname_(hostname), 42 // Find the relevant rule which matches |qtype| and prefix of |hostname|. 46 (hostname.size() >= prefix.size()) && 47 (hostname.compare(0, prefix.size(), prefix) == 0)) { 150 const std::string& hostname, 155 new MockTransaction(rules_, hostname, qtype, callback));
|
dns_transaction.h | 31 // Returns the original |hostname|. 49 // original |hostname| as a result of suffix search. 56 // Creates DnsTransaction for the given |hostname| and |qtype| (assuming 57 // QCLASS is IN). |hostname| should be in the dotted form. A dot at the end 59 // search. |hostname| should not be an IP literal. 64 const std::string& hostname,
|
/external/chromium/net/url_request/ |
url_request_filter.cc | 32 const std::string& hostname, URLRequest::ProtocolFactory* factory) { 33 hostname_handler_map_[make_pair(scheme, hostname)] = factory; 52 const std::string& hostname) { 54 hostname_handler_map_.find(make_pair(scheme, hostname)); 75 // Check to see if this URL is masked by a hostname handler. 124 // Check the hostname map first. 125 const std::string& hostname = request->url().host(); local 128 hostname_handler_map_.find(make_pair(scheme, hostname)); 133 // Not in the hostname map, check the url map.
|
/external/chromium/third_party/libjingle/source/talk/base/ |
nethelpers.cc | 50 result_ = SafeGetHostByName(addr_.hostname().c_str(), &error_); 62 hostent* SafeGetHostByName(const char* hostname, int* herrno) { 63 if (NULL == hostname || NULL == herrno) { 70 hostent* ent = gethostbyname(hostname); 136 while ((ret = gethostbyname_r(hostname, reinterpret_cast<hostent*>(buf), aux, 156 result = getipnodebyname(hostname, AF_INET, AI_DEFAULT, herrno);
|
socketaddress.h | 49 // the hostname will be immediately resolved to an IP (which may block for 53 SocketAddress(const std::string& hostname, int port); 64 // Determines if this is a nil address (empty hostname, any IP, null port) 73 // Changes the IP of this address to the given one, and clears the hostname. 76 // Changes the hostname of this address to the given one. 78 void SetIP(const std::string& hostname); 80 // Sets the IP address while retaining the hostname. Useful for bypassing 87 // Returns the hostname 88 const std::string& hostname() const { return hostname_; } function in class:talk_base::SocketAddress 102 // Returns hostname:por [all...] |
nethelpers.h | 71 hostent* SafeGetHostByName(const char* hostname, int* herrno);
|
/external/dropbear/ |
fake-rfc2553.c | 150 getaddrinfo(const char *hostname, const char *servname, 175 if (hostname && inet_aton(hostname, &in) != 0) 183 if (!hostname) { 190 if (inet_aton(hostname, &in)) { 201 hp = gethostbyname(hostname);
|
loginrec.h | 135 char hostname[LINFO_HOSTSIZE]; /* remote hostname */ member in struct:logininfo 154 const char *hostname, const char *line); 159 const char *hostname, const char *line);
|
/external/nist-sip/java/gov/nist/core/ |
HostNameParser.java | 175 String hostname; local 179 hostname = ipv6Reference(); 187 hostname 192 //IPv4 address or hostname 196 hostname = lexer.getBuffer().substring(startPtr, lexer.getPtr()); 199 if (hostname.length() == 0) 204 return new Host(hostname); 307 " Illegal character in hostname:" + lexer.lookAhead(0),
|
/external/openssh/openbsd-compat/ |
fake-rfc2553.c | 155 getaddrinfo(const char *hostname, const char *servname, 183 if (hostname && inet_aton(hostname, &in) != 0) 191 if (!hostname) { 198 if (inet_aton(hostname, &in)) { 209 hp = gethostbyname(hostname);
|
/external/chromium/chrome/browser/net/ |
chrome_dns_cert_provenance_checker.cc | 33 const std::string& hostname, 35 net::DnsCertProvenanceChecker::DoAsyncLookup(hostname, der_certs, 47 const std::string& hostname, 49 const std::string report = BuildEncryptedReport(hostname, der_certs);
|
/external/chromium_org/chrome/browser/chromeos/policy/ |
policy_cert_verifier.h | 33 const std::string& hostname,
|
/external/chromium_org/chrome/browser/policy/cloud/ |
test_request_interceptor.h | 26 // Intercepts all requests to the given hostname while in scope, and allows 36 // Will intercept request to |hostname| made over HTTP. 37 explicit TestRequestInterceptor(const std::string& hostname);
|
/external/chromium_org/net/quic/crypto/ |
crypto_utils.h | 43 // (2) check that the hostname contains valid characters only; and 47 // Convert hostname to lowercase and remove the trailing '.'. 48 // Returns |hostname|. NormalizeHostname() doesn't support IP address 50 static std::string NormalizeHostname(const char* hostname);
|