Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 110 for InetAddress (0.06 sec)

  1. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

        private val localAddress: InetAddress,
        private val localPort: Int,
        private val remoteAddress: InetAddress = localAddress,
        private val remotePort: Int = 1234,
      ) : Socket() {
        override fun getInetAddress() = remoteAddress
    
        override fun getLocalAddress() = localAddress
    
        override fun getLocalPort() = localPort
    
        override fun getPort() = remotePort
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

          }
        }
    
        return lookupHttps(hostname)
      }
    
      @Throws(UnknownHostException::class)
      private fun lookupHttps(hostname: String): List<InetAddress> {
        val networkRequests = ArrayList<Call>(2)
        val failures = ArrayList<Exception>(2)
        val results = ArrayList<InetAddress>(5)
    
        buildRequest(hostname, networkRequests, results, failures, DnsRecordCodec.TYPE_A)
    
        if (includeIPv6) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/UniAddress.java

        private static InetAddress baddr;
    
        private static LogStream log = LogStream.getInstance();
    
        static {
            String ro = Config.getProperty( "jcifs.smb1.resolveOrder" );
            InetAddress nbns = NbtAddress.getWINSAddress();
    
            try {
                baddr = Config.getInetAddress( "jcifs.smb1.netbios.baddr",
                                    InetAddress.getByName( "255.255.255.255" ));
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 16.2K bytes
    - Viewed (0)
  4. 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 Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 03 21:33:52 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/config/BaseConfiguration.java

        protected int netbiosRetryTimeout = 3000;
        protected String netbiosScope;
        protected int netbiosLocalPort = 0;
        protected InetAddress netbiosLocalAddress;
        protected String lmhostsFilename;
        protected InetAddress[] winsServer = new InetAddress[0];
        protected InetAddress broadcastAddress;
        protected List<ResolverType> resolverOrder;
        protected int maximumBufferSize = 0x10000;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NbtAddress.java

        /**
         * To convert this address to an <code>InetAddress</code>.
         *
         * @return the {@link java.net.InetAddress} representation of this address.
         * @throws UnknownHostException
         */
    
        public InetAddress getInetAddress () throws UnknownHostException {
            return InetAddress.getByName(getHostAddress());
        }
    
    
        @Override
        public InetAddress toInetAddress () throws UnknownHostException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 15.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/AsyncDns.kt

            val allAddresses = mutableListOf<InetAddress>()
            val allExceptions = mutableListOf<IOException>()
            val latch = CountDownLatch(asyncDns.size)
    
            asyncDns.forEach {
              it.query(
                hostname,
                object : Callback {
                  override fun onResponse(
                    hostname: String,
                    addresses: List<InetAddress>,
                  ) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. okhttp-android/src/androidTest/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

        assertThat(exception).isNull()
        assertThat(allAddresses).isNotEmpty()
      }
    
      private fun dnsQuery(hostname: String): Pair<List<InetAddress>, Exception?> {
        val allAddresses = mutableListOf<InetAddress>()
        var exception: Exception? = null
        val latch = CountDownLatch(1)
    
        // assumes an IPv4 address
        AndroidAsyncDns.IPv4.query(
          hostname,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/BootstrapDns.kt

    package okhttp3.dnsoverhttps
    
    import java.net.InetAddress
    import java.net.UnknownHostException
    import okhttp3.Dns
    
    /**
     * Internal Bootstrap DNS implementation for handling initial connection to DNS over HTTPS server.
     *
     * Returns hardcoded results for the known host.
     */
    internal class BootstrapDns(
      private val dnsHostname: String,
      private val dnsServers: List<InetAddress>,
    ) : Dns {
      @Throws(UnknownHostException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  10. okhttp-android/src/test/kotlin/okhttp3/android/ShadowDnsResolver.kt

        val nsType: Int,
        val flags: Int,
        val callback: DnsResolver.Callback<List<InetAddress>>,
      )
    
      @Implementation
      fun query(
        network: Network?,
        domain: String,
        nsType: Int,
        flags: Int,
        executor: Executor,
        cancellationSignal: CancellationSignal?,
        callback: DnsResolver.Callback<List<InetAddress>>,
      ) {
        responder(Request(network, domain, nsType, flags, callback))
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 22 20:07:09 UTC 2024
    - 1.7K bytes
    - Viewed (0)
Back to top