Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getLoopbackAddress (0.39 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/config_selfclient.go

    		// So if localhost.<yoursearchdomain> resolves, we don't get a 127.0.0.1 as expected.
    		host = getLoopbackAddress(isIPv6)
    	}
    	return host, port, nil
    }
    
    // getLoopbackAddress returns the ip address of local loopback interface. If any error occurs or loopback interface is not found, will fall back to "localhost"
    func getLoopbackAddress(wantIPv6 bool) string {
    	addrs, err := net.InterfaceAddrs()
    	if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 23 00:06:34 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/internal/UtilTest.kt

    import okio.buffer
    import okio.source
    import org.junit.jupiter.api.Test
    import org.junit.jupiter.api.assertThrows
    
    class UtilTest {
      @Test
      fun socketIsHealthy() {
        val localhost = InetAddress.getLoopbackAddress()
        val serverSocket = ServerSocket(0, 1, localhost)
    
        val socket = Socket()
        socket.connect(serverSocket.localSocketAddress)
        val socketSource = socket.source().buffer()
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/InetAddressFactory.java

                localBindingAddress = wildcardBindingAddress;
            } else {
                localBindingAddress = InetAddress.getLoopbackAddress();
            }
        }
    
        private void handleOpenshift() {
            InetAddress openshiftBindAddress = findOpenshiftAddresses();
            if (openshiftBindAddress != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 17 00:47:05 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/daemon/DaemonReuseIntegrationTest.groovy

            def nonDaemonProcess = new ServerSocket()
            ConcurrentTestUtil.poll {
                def listeningAddress = new InetSocketAddress(InetAddress.getLoopbackAddress(), daemons.daemon.port)
                println("Listening with non-daemon process on ${listeningAddress}")
                nonDaemonProcess.bind(listeningAddress)
            }
            def latch = new CyclicBarrier(2)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/TimeoutTest.java

            Set<Thread> threadsBefore = new HashSet<>(Thread.getAllStackTraces().keySet());
            try ( ServerSocket ss = ServerSocketFactory.getDefault().createServerSocket(0, -1, InetAddress.getLoopbackAddress()) ) {
                int port = ss.getLocalPort();
                InetAddress addr = ss.getInetAddress();
    
                long start = System.currentTimeMillis();
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 12.4K bytes
    - Viewed (0)
  6. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/services/NativeServices.java

                }
            }
            String hostname;
            try {
                hostname = InetAddress.getLocalHost().getHostName();
            } catch (UnknownHostException e) {
                hostname = InetAddress.getLoopbackAddress().getHostAddress();
            }
            return new FixedHostname(hostname);
        }
    
        @Provides
        protected FileMetadataAccessor createFileMetadataAccessor(OperatingSystem operatingSystem) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/EventListenerTest.kt

      }
    
      @Test
      fun successfulCallEventSequenceForIpAddress() {
        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .build(),
        )
        val ipAddress = InetAddress.getLoopbackAddress().hostAddress
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/").newBuilder().host(ipAddress!!).build())
              .build(),
          )
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(client.connectionPool.idleConnectionCount()).isEqualTo(1)
      }
    
      @Test
      fun httpsWithIpAddress() {
        platform.assumeNotBouncyCastle()
    
        val localIpAddress = InetAddress.getLoopbackAddress().hostAddress
    
        // Create a certificate with an IP address in the subject alt name.
        val heldCertificate =
          HeldCertificate.Builder()
            .commonName("example.com")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top