Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for InetAddress (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/main/java/jcifs/Config.java

            final String addr = props.getProperty(key);
            if (addr != null) {
                try {
                    def = InetAddress.getByName(addr);
                } catch (final UnknownHostException uhe) {
                    log.error("Unknown host " + addr, uhe);
                }
            }
            return def;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  5. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Dec 03 21:33:52 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. 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)
  10. src/test/java/jcifs/ConfigTest.java

        }
    
        @Test
        @DisplayName("Should get InetAddress property with default value")
        void testGetInetAddressWithDefault() throws UnknownHostException {
            InetAddress localhost = InetAddress.getByName("localhost");
            InetAddress defaultAddress = InetAddress.getByName("127.0.0.1");
            assertEquals(localhost, Config.getInetAddress(testProperties, "test.host", null));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
Back to top