Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for getAllByName (0.21 sec)

  1. src/main/java/jcifs/netbios/NameServiceClientImpl.java

    
        @Override
        public UniAddress getByName ( String hostname, boolean possibleNTDomainOrWorkgroup ) throws UnknownHostException {
            return getAllByName(hostname, possibleNTDomainOrWorkgroup)[ 0 ];
        }
    
    
        @Override
        public UniAddress[] getAllByName ( String hostname, boolean possibleNTDomainOrWorkgroup ) throws UnknownHostException {
            if ( hostname == null || hostname.length() == 0 ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Aug 14 14:26:22 UTC 2022
    - 38.2K bytes
    - Viewed (0)
  2. docs/changelogs/upgrading_to_okhttp_4.md

    ```kotlin
    val client = OkHttpClient.Builder()
        .dns { hostname -> InetAddress.getAllByName(hostname).toList() }
        .build()
    ```
    
    Kotlin calling OkHttp 4.x:
    
    ```kotlin
    val client = OkHttpClient.Builder()
        .dns(object : Dns {
          override fun lookup(hostname: String) =
              InetAddress.getAllByName(hostname).toList()
        })
        .build()
    ```
    
    SAM conversion impacts these APIs:
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/UniAddress.java

                                            throws UnknownHostException {
            UniAddress[] addrs = UniAddress.getAllByName(hostname, possibleNTDomainOrWorkgroup);
            return addrs[0];
        }
        public static UniAddress[] getAllByName( String hostname,
                                            boolean possibleNTDomainOrWorkgroup )
                                            throws UnknownHostException {
    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. src/test/java/jcifs/tests/TimeoutTest.java

                private NetbiosAddress replacementNetbios = nscl.getNbtByName(replacement);
    
    
                @Override
                public Address[] getAllByName ( String hostname, boolean possibleNTDomainOrWorkgroup ) throws UnknownHostException {
                    Address[] all = super.getAllByName(hostname, possibleNTDomainOrWorkgroup);
                    return wrap(hostname, all);
                }
    
    
                @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 12.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                            }
                            this.addresses = this.ctx.getNameServiceClient().getAllByName(this.ctx.getConfig().getDefaultDomain(), true);
                        }
                    }
                    else if ( path.length() == 0 || path.equals("/") ) {
                        this.addresses = this.ctx.getNameServiceClient().getAllByName(host, true);
                    }
                    else {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sat Jul 20 08:24:53 UTC 2019
    - 23.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

    
        @Override
        public SmbTransportImpl getSmbTransport ( CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning ) throws IOException {
    
            Address[] addrs = tf.getNameServiceClient().getAllByName(name, true);
    
            if ( addrs == null || addrs.length == 0 ) {
                throw new UnknownHostException(name);
            }
    
            Arrays.sort(addrs, new Comparator<Address>() {
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

       * it to prefer IPv6.
       */
      private var dnsResults = listOf<InetAddress>()
    
      @BeforeEach
      internal fun setUp() {
        val inetAddresses = InetAddress.getAllByName("localhost")
        localhostIpv4 = inetAddresses.firstOrNull { it is Inet4Address }
          ?: throw TestAbortedException()
        localhostIpv6 = inetAddresses.firstOrNull { it is Inet6Address }
          ?: throw TestAbortedException()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbSession.java

    synchronized (DOMAIN) {
                long now = System.currentTimeMillis();
                int retry = 1;
    
                do {
                    if (dc_list_expiration < now) {
                        NbtAddress[] list = NbtAddress.getAllByName( DOMAIN, 0x1C, null, null );
                        dc_list_expiration = now + CACHE_POLICY * 1000L;
                        if (list != null && list.length > 0) {
                            dc_list = list;
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 18.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/netbios/NbtAddress.java

            }
        }
    
        public static NbtAddress[] getAllByName( String host,
                                            int type,
                                            String scope,
                                            InetAddress svr )
                                            throws UnknownHostException {
            return CLIENT.getAllByName( new Name( host, type, scope ), svr );
        }
    
    /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 30.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                            NbtAddress.switchWINS();
                        request.addr = NbtAddress.getWINSAddress();
                    }
                }
            }
        }
    
        NbtAddress[] getAllByName( Name name, InetAddress addr )
                                                throws UnknownHostException {
            int n;
            NameQueryRequest request = new NameQueryRequest( name );
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 17.4K bytes
    - Viewed (0)
Back to top