- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 62 for InetAddress (0.18 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt
*/ package okhttp3 import assertk.assertThat import assertk.assertions.containsExactly import java.net.InetAddress import java.net.UnknownHostException import okio.Buffer class FakeDns : Dns { private val hostAddresses: MutableMap<String, List<InetAddress>> = mutableMapOf() private val requestedHosts: MutableList<String> = mutableListOf()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.6K bytes - Viewed (0) -
src/main/java/jcifs/netbios/UniAddress.java
return ( (NbtAddress) this.addr ).getHostAddress(); } return ( (InetAddress) this.addr ).getHostAddress(); } /** * {@inheritDoc} * * @throws UnknownHostException * * @see jcifs.Address#toInetAddress() */ @Override public InetAddress toInetAddress () throws UnknownHostException { if ( this.addr instanceof Address ) {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 8.3K bytes - Viewed (0) -
src/main/java/jcifs/Config.java
} } return def; } /** * Retrieve an <code>InetAddress</code>. If the address is not * an IP address and cannot be resolved <code>null</code> will * be returned. */ public static InetAddress getInetAddress ( Properties props, String key, InetAddress def ) { String addr = props.getProperty(key); if ( addr != null ) { try {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 6.3K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt
private val localAddress: InetAddress, private val localPort: Int, private val remoteAddress: InetAddress = localAddress, private val remotePort: Int = 1234, ) : Socket() { override fun getInetAddress() = remoteAddress override fun getLocalAddress() = localAddress override fun getLocalPort() = localPort override fun getPort() = remotePort }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/SocksProxy.kt
when { domainName.equals(HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS, ignoreCase = true) -> { InetAddress.getByName("localhost") } else -> InetAddress.getByName(domainName) } } else -> throw ProtocolException("unsupported address type: $addressType") }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 7.7K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSocketFactory.kt
override fun createSocket( host: String, port: Int, localAddress: InetAddress, localPort: Int, ): Socket { val socket = delegate.createSocket(host, port, localAddress, localPort) return configureSocket(socket) } @Throws(IOException::class) override fun createSocket( host: InetAddress, port: Int, ): Socket { val socket = delegate.createSocket(host, port)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainSocketFactory.java
result.close(); throw e; } return result; } @Override public Socket createSocket( String host, int port, InetAddress localHost, int localPort) throws IOException { return createSocket(host, port); } @Override public Socket createSocket(InetAddress host, int port) throws IOException { Socket result = createSocket(); try { result.connect(new InetSocketAddress(host, port));
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 03 21:33:52 UTC 2023 - 2.1K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/AsyncDns.kt
val allAddresses = mutableListOf<InetAddress>() val allExceptions = mutableListOf<IOException>() val latch = CountDownLatch(asyncDns.size) asyncDns.forEach { it.query( hostname, object : Callback { override fun onResponse( hostname: String, addresses: List<InetAddress>, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 23 14:31:42 UTC 2024 - 3.5K bytes - Viewed (0) -
okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt
assertThat(exception).isNull() assertThat(allAddresses).isNotEmpty() } private fun dnsQuery(hostname: String): Pair<List<InetAddress>, Exception?> { val allAddresses = mutableListOf<InetAddress>() var exception: Exception? = null val latch = CountDownLatch(1) // assumes an IPv4 address AndroidAsyncDns.IPv4.query( hostname,
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.7K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt
package okhttp3.dnsoverhttps import java.net.InetAddress import java.net.UnknownHostException import okhttp3.Dns /** * Internal Bootstrap DNS implementation for handling initial connection to DNS over HTTPS server. * * Returns hardcoded results for the known host. */ internal class BootstrapDns( private val dnsHostname: String, private val dnsServers: List<InetAddress>, ) : Dns { @Throws(UnknownHostException::class)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.3K bytes - Viewed (0)