Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 50 for addresses3 (0.24 seconds)

  1. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolverTest.java

            // Test IPv6 loopback address with brackets
            String host = "[::1]";
            InetAddress[] addresses = resolver.resolve(host);
            assertNotNull(addresses);
            assertTrue(addresses.length > 0);
            // IPv6 loopback can be represented as ::1 or 0:0:0:0:0:0:0:1
            String hostAddress = addresses[0].getHostAddress();
            assertTrue(hostAddress.contains(":"));
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Nov 06 07:24:43 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/util/IpAddressUtil.java

     */
    package org.codelibs.fess.util;
    
    import java.net.Inet6Address;
    import java.net.InetAddress;
    
    /**
     * Utility class for handling IP addresses, particularly IPv6 addresses in URLs.
     * This class provides methods to properly format IPv6 addresses for use in URLs
     * by adding brackets where necessary.
     */
    public final class IpAddressUtil {
    
        /**
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Thu Nov 06 08:31:03 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  3. cmd/net.go

    	"github.com/minio/minio/internal/logger"
    	xnet "github.com/minio/pkg/v3/net"
    )
    
    var (
    	// IPv4 addresses of localhost.
    	localIP4 = mustGetLocalIP4()
    
    	// IPv6 addresses of localhost.
    	localIP6 = mustGetLocalIP6()
    
    	// List of all local loopback addresses.
    	localLoopbacks = mustGetLocalLoopbacks()
    )
    
    // mustSplitHostPort is a wrapper to net.SplitHostPort() where error is assumed to be a fatal.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 9.6K bytes
    - Click Count (1)
  4. src/test/java/jcifs/netbios/NameServiceClientImplTest.java

        }
    
        @Test
        @DisplayName("Should get all addresses by name")
        void testGetAllByName() throws UnknownHostException {
            // When
            Address[] addresses = nameServiceClient.getAllByName("localhost", false);
    
            // Then
            assertNotNull(addresses, "Should return addresses array");
            assertTrue(addresses.length > 0, "Should return at least one address");
        }
    
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 11K bytes
    - Click Count (0)
  5. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/IdnDnsResolver.java

        /**
         * Resolves the given host name to an array of IP addresses.
         * The host name is first converted to ASCII using IDN before resolution.
         * IPv6 addresses in bracket notation (e.g., [::1] or [2001:db8::1]) are
         * handled specially by removing the brackets before resolution.
         *
         * @param host the host name to resolve
         * @return an array of IP addresses for the host
    Created: Sat Dec 20 11:21:39 GMT 2025
    - Last Modified: Thu Nov 06 07:24:43 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt

        val result = proxies[nextProxyIndex++]
        resetNextInetSocketAddress(result)
        return result
      }
    
      /** Prepares the socket addresses to attempt for the current proxy or host. */
      @Throws(IOException::class)
      private fun resetNextInetSocketAddress(proxy: Proxy) {
        // Clear the addresses. Necessary if getAllByName() below throws!
        val mutableInetSocketAddresses = mutableListOf<InetSocketAddress>()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Oct 08 03:50:05 GMT 2025
    - 7.3K bytes
    - Click Count (2)
  7. okhttp-testing-support/src/main/kotlin/okhttp3/OkHttpClientTestRule.kt

         * fallbacks to prevent the host machine's various IP addresses from interfering.
         */
        private val SINGLE_INET_ADDRESS_DNS =
          Dns { hostname ->
            val addresses = Dns.SYSTEM.lookup(hostname)
            listOf(addresses[0])
          }
    
        private operator fun Throwable?.plus(throwable: Throwable): Throwable {
          if (this != null) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Nov 04 19:13:52 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

            assertEquals(0, stats.getActiveSessions());
            assertEquals(0, stats.getTotalChannels());
        }
    
        @Test
        @DisplayName("createChannelTransport should fail with null addresses")
        void testCreateChannelTransportWithNullAddresses() {
            // Use reflection to access private method for testing
            Exception exception = assertThrows(Exception.class, () -> {
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 4K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Then: Should connect to IPC$ share
            verify(tree).connectLogon(ctx);
        }
    
        @Test
        @DisplayName("Should sort addresses by fail count and failover")
        void testFailoverWithFailCounts() throws Exception {
            // Given: Multiple addresses with different fail counts
            Address addr1 = mock(Address.class);
            when(addr1.getHostAddress()).thenReturn("10.0.0.1");
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 19.2K bytes
    - Click Count (0)
  10. internal/http/server.go

    	DefaultMaxHeaderBytes = 1 * humanize.MiByte
    )
    
    // Server - extended http.Server supports multiple addresses to serve and enhanced connection handling.
    type Server struct {
    	http.Server
    	Addrs         []string      // addresses on which the server listens for new connection.
    	TCPOptions    TCPOptions    // all the configurable TCP conn specific configurable options.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 6.5K bytes
    - Click Count (0)
Back to Top