Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for InetAddress (0.46 seconds)

  1. guava-tests/test/com/google/common/net/InetAddressesTest.java

      public void testIncrementIPv6() throws UnknownHostException {
        InetAddress addressV6_66_0 = InetAddress.getByName("2001:db8::6600");
        InetAddress addressV6_66_ff = InetAddress.getByName("2001:db8::66ff");
        InetAddress addressV6_67_0 = InetAddress.getByName("2001:db8::6700");
    
        InetAddress address = addressV6_66_0;
        for (int i = 0; i < 255; i++) {
          address = InetAddresses.increment(address);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 36.3K bytes
    - Click Count (0)
  2. 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 java.util.Collections
    import okio.Buffer
    
    class FakeDns : Dns {
      private val hostAddresses: MutableMap<String, List<InetAddress>> =
        Collections.synchronizedMap(mutableMapOf())
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Feb 04 20:20:29 GMT 2026
    - 2.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/net/InetAddresses.java

       *
       * @param address the InetAddress to decrement
       * @return a new InetAddress that is one less than the passed in address
       * @throws IllegalArgumentException if InetAddress is at the beginning of its range
       * @since 18.0
       */
      public static InetAddress decrement(InetAddress address) {
        byte[] addr = address.getAddress();
        int i = addr.length - 1;
        while (i >= 0 && addr[i] == (byte) 0x00) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 47.7K bytes
    - Click Count (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/conn/Hc5IdnDnsResolver.java

                final String ipv6Address = host.substring(1, host.length() - 1);
                return InetAddress.getAllByName(ipv6Address);
            }
            return InetAddress.getAllByName(toAscii(host));
        }
    
        /**
         * Returns the canonical host name for the given host.
         * This method returns the host name obtained from the address.
         *
         * @param host the host name to resolve
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Sun Jan 04 13:09:59 GMT 2026
    - 4.5K bytes
    - Click Count (0)
  5. 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")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  6. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       */
      @Throws(IOException::class)
      public fun start(
        inetAddress: InetAddress,
        port: Int,
      ) {
        start(InetSocketAddress(inetAddress, port))
      }
    
      /**
       * Starts the server and binds to the given socket address.
       *
       * @param socketAddress the socket address to bind the server on
       */
      @Synchronized
      @Throws(IOException::class)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 40.3K bytes
    - Click Count (0)
  7. docs/features/events.md

        printEvent("callEnd");
      }
    
      @Override public void dnsStart(Call call, String domainName) {
        printEvent("dnsStart");
      }
    
      @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
        printEvent("dnsEnd");
      }
    
      ...
    }
    ```
    
    We make a couple calls:
    
    ```java
    Request request = new Request.Builder()
        .url("https://publicobject.com/helloworld.txt")
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:01:42 GMT 2026
    - 7.7K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/admin/maintenance/AdminMaintenanceAction.java

         *
         * @return formatted string containing hostname and IP address
         */
        protected String getHostInfo() {
            final StringBuilder buf = new StringBuilder();
            try {
                final InetAddress ia = InetAddress.getLocalHost();
                final String hostname = ia.getHostName();
                if (StringUtil.isNotBlank(hostname)) {
                    buf.append(hostname);
                }
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 28 06:59:19 GMT 2026
    - 23K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

        }
    
        /**
         * Resolves a hostname to an InetAddress.
         *
         * @param host the hostname to resolve
         * @return the resolved InetAddress
         * @throws FessSystemException if hostname resolution fails
         */
        protected InetAddress getInetAddressByName(final String host) {
            try {
                return InetAddress.getByName(host);
            } catch (final UnknownHostException e) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 138.6K bytes
    - Click Count (1)
  10. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

     * limitations under the License.
     */
    
    package okhttp3
    
    import java.io.File
    import java.io.IOException
    import java.math.BigInteger
    import java.net.CookieHandler
    import java.net.InetAddress
    import java.net.InetSocketAddress
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.Socket
    import java.net.URI
    import java.net.URL
    import java.nio.charset.Charset
    import java.security.KeyPair
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 49.7K bytes
    - Click Count (0)
Back to Top