Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for getLocalHost (0.24 sec)

  1. src/test/java/jcifs/tests/DelegatingNameServiceClient.java

        }
    
    
        @Override
        public NetbiosName getLocalName () {
            return this.nscl.getLocalName();
        }
    
    
        @Override
        public NetbiosAddress getLocalHost () {
            return this.nscl.getLocalHost();
        }
    
    
        @Override
        public Address getByName ( String hostname ) throws UnknownHostException {
            return this.nscl.getByName(hostname);
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 3.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/net/UuidUtil.java

            StringUtil.appendHex(buf, RANDOM.nextInt());
            return buf.toString();
        }
    
        private static byte[] getAddress() {
            try {
                return InetAddress.getLocalHost().getAddress();
            } catch (final UnknownHostException ignore) {
                return DEFAULT_ADDRESS;
            }
        }
    Java
    - Registered: Fri Apr 26 20:58:09 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

      }
    
      @AfterEach
      fun tearDown() {
        Authenticator.setDefault(null)
        factory.close()
      }
    
      @Test
      fun testBasicAuth() {
        fakeDns["server"] = listOf(InetAddress.getLocalHost())
    
        val route = factory.newRoute()
    
        val request =
          Request.Builder()
            .url("https://server/robots.txt")
            .build()
        val response =
          Response.Builder()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            }
            return addrs;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.NameServiceClient#getLocalHost()
         */
        @Override
        public NbtAddress getLocalHost () {
            return this.localhostAddress;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.NameServiceClient#getLocalName()
         */
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Aug 14 14:26:22 GMT 2022
    - 38.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NbtAddress.java

     * conditions, users of jCIFS need not be concerned with this class as
     * name resolution and session services are handled internally by the smb package.
     * 
     * <p> Applications can use the methods <code>getLocalHost</code>,
     * <code>getByName</code>, and
     * <code>getAllByAddress</code> to create a new NbtAddress instance. This
     * class is symmetric with {@link java.net.InetAddress}.
     *
     * <p><b>About NetBIOS:</b> The NetBIOS name
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 30.1K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/KotlinSourceModernTest.kt

        var requestCount: Int = mockWebServer.requestCount
        mockWebServer.enqueue(MockResponse())
        mockWebServer.start()
        mockWebServer.start(0)
        mockWebServer.start(InetAddress.getLocalHost(), 0)
        mockWebServer.shutdown()
        var dispatcher: Dispatcher = mockWebServer.dispatcher
        dispatcher = mockWebServer.dispatcher
        mockWebServer.dispatcher = QueueDispatcher()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (1)
  7. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

            DEFAULT_DOMAIN = Config.getProperty("jcifs.smb1.smb.client.domain", null);
            String defaultWorkstation = null;
            try {
                defaultWorkstation = NbtAddress.getLocalHost().getHostName();
            } catch (UnknownHostException ex) { }
            DEFAULT_WORKSTATION = defaultWorkstation;
        }
    
        /**
         * Creates a Type-1 message using default values from the current
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/NetbiosAddress.java

     * conditions, users of jCIFS need not be concerned with this class as
     * name resolution and session services are handled internally by the smb package.
     * 
     * <p>
     * Applications can use the methods <code>getLocalHost</code>,
     * <code>getByName</code>, and
     * <code>getAllByAddress</code> to create a new NbtAddress instance. This
     * class is symmetric with {@link java.net.InetAddress}.
     *
     * <p>
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/Config.java

                catch ( UnknownHostException uhe ) {
                    log.error("Unknown host " + addr, uhe);
                }
            }
            return def;
        }
    
    
        public static InetAddress getLocalHost ( Properties props ) {
            String addr = props.getProperty("jcifs.smb.client.laddr");
    
            if ( addr != null ) {
                try {
                    return InetAddress.getByName(addr);
                }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/ntlmssp/Type1Message.java

         * 
         * @param tc
         *            context to use
         */
        public Type1Message ( CIFSContext tc ) {
            this(tc, getDefaultFlags(tc), tc.getConfig().getDefaultDomain(), tc.getNameServiceClient().getLocalHost().getHostName());
        }
    
    
        /**
         * Creates a Type-1 message with the specified parameters.
         * 
         * @param tc
         *            context to use
         * @param flags
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Sep 02 12:55:08 GMT 2018
    - 7.8K bytes
    - Viewed (0)
Back to top