- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 104 for InetAddress (0.08 sec)
-
src/test/java/jcifs/smb1/UniAddressTest.java
@Test void getAddressReturnsOriginalObject() { InetAddress dummy = mock(InetAddress.class); UniAddress ua = new UniAddress(dummy); assertSame(dummy, ua.getAddress(), "getAddress should return the wrapped address"); } @Test void getHostNameDelegatesToWrappedInetAddress() { InetAddress dummy = mock(InetAddress.class); when(dummy.getHostName()).thenReturn("host.example.com");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java
InetAddress localhost = InetAddress.getLocalHost(); InetAddress loopback = InetAddress.getLoopbackAddress(); // Use reflection to access private method for testing java.lang.reflect.Method method = MultiChannelManager.class.getDeclaredMethod("createChannelTransport", InetAddress.class, InetAddress.class); method.setAccessible(true);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 4K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt
assertThat(request.url.toString()).isEqualTo("http://host-from-header.com/") } private class FakeSocket( private val localAddress: InetAddress, private val localPort: Int, private val remoteAddress: InetAddress = localAddress, private val remotePort: Int = 1234, ) : Socket() { override fun getInputStream() = Buffer().inputStream()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 20:36:00 UTC 2025 - 5.3K bytes - Viewed (0) -
src/main/java/jcifs/Config.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 8.1K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
private fun lookupHttps(hostname: String): List<InetAddress> { val networkRequests = buildList { add(client.newCall(buildRequest(hostname, DnsRecordCodec.TYPE_A))) if (includeIPv6) { add(client.newCall(buildRequest(hostname, DnsRecordCodec.TYPE_AAAA))) } } val failures = ArrayList<Exception>(2) val results = ArrayList<InetAddress>(5)
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.6K bytes - Viewed (0) -
src/test/java/jcifs/netbios/UniAddressTest.java
InetAddress inetAddress = InetAddress.getByName("127.0.0.1"); UniAddress uniAddress = new UniAddress(inetAddress); assertEquals(uniAddress, uniAddress.unwrap(UniAddress.class)); } @Test void shouldReturnNullWhenTypeIsNotAssignable() throws UnknownHostException { InetAddress inetAddress = InetAddress.getByName("127.0.0.1");
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.4K bytes - Viewed (0) -
src/main/java/jcifs/smb1/UniAddress.java
private static int[] resolveOrder; private static InetAddress baddr; private static LogStream log = LogStream.getInstance(); static { final String ro = Config.getProperty("jcifs.smb1.resolveOrder"); final InetAddress nbns = NbtAddress.getWINSAddress(); try { baddr = Config.getInetAddress("jcifs.smb1.netbios.baddr", InetAddress.getByName("255.255.255.255"));
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java
} @Test void testChannelInfoCreation() throws Exception { // Test ChannelInfo creation InetAddress localAddr = InetAddress.getByName("192.168.1.10"); InetAddress remoteAddr = InetAddress.getByName("192.168.1.100"); NetworkInterfaceInfo localNic = new NetworkInterfaceInfo(localAddr, 1);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 8.2K bytes - Viewed (0) -
src/main/java/jcifs/smb1/Config.java
} /** * Retrieve an <code>InetAddress</code>. If the address is not * an IP address and cannot be resolved <code>null</code> will * be returned. * * @param key the property key to look up * @param def the default InetAddress to return if the property is not found or cannot be resolved * @return the property value as an InetAddress, or the default value */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 14.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/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 Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 7.6K bytes - Viewed (0)