Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for getInetAddress (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

         * @throws UnknownHostException if the address cannot be resolved
         */
    
        public InetAddress getInetAddress() throws UnknownHostException {
            return InetAddress.getByName(getHostAddress());
        }
    
        @Override
        public InetAddress toInetAddress() throws UnknownHostException {
            return getInetAddress();
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.1K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/NbtAddressTest.java

            // Test getInetAddress for correct InetAddress creation
            mockName = new Name(mockConfig, "TESTHOST", 0x20, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
            InetAddress expectedInetAddress = InetAddress.getByName("192.168.1.1");
            assertEquals(expectedInetAddress, nbtAddress.getInetAddress());
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.4K bytes
    - Click Count (0)
  3. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

        private val remotePort: Int = 1234,
      ) : Socket() {
        override fun getInputStream() = Buffer().inputStream()
    
        override fun getOutputStream() = Buffer().outputStream()
    
        override fun getInetAddress() = remoteAddress
    
        override fun getLocalAddress() = localAddress
    
        override fun getLocalPort() = localPort
    
        override fun getPort() = remotePort
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 02 20:36:00 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/NetbiosAddress.java

     * a member of the group(a.k.a workgroup and domain) <code>BILLING-NY</code>. To
     * obtain an {@link java.net.InetAddress} for a host one might do:
     *
     * <pre>
     *
     * InetAddress addr = NbtAddress.getByName("jmorris2").getInetAddress();
     * </pre>
     *
     *  * From a UNIX platform with Samba installed you can perform similar
     * diagnostics using the <code>nmblookup</code> utility.
     *
     * @author Michael B. Allen
     * @see java.net.InetAddress
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/Config.java

         * @param def the default value to return if key is not found or cannot be resolved
         * @return the InetAddress for the property or the default value
         */
        public static InetAddress getInetAddress(final Properties props, final String key, InetAddress def) {
            final String addr = props.getProperty(key);
            if (addr != null) {
                try {
                    def = InetAddress.getByName(addr);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.1K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/Config.java

         * @param def the default InetAddress to return if the property is not found or cannot be resolved
         * @return the property value as an InetAddress, or the default value
         */
    
        public static InetAddress getInetAddress(final String key, InetAddress def) {
            final String addr = prp.getProperty(key);
            if (addr != null) {
                try {
                    def = InetAddress.getByName(addr);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  7. src/test/java/jcifs/ConfigTest.java

            InetAddress localhost = InetAddress.getByName("localhost");
            InetAddress defaultAddress = InetAddress.getByName("127.0.0.1");
            assertEquals(localhost, Config.getInetAddress(testProperties, "test.host", null));
            assertEquals(defaultAddress, Config.getInetAddress(testProperties, "nonexistent.host", defaultAddress));
        }
    
        @Test
        @DisplayName("Should get boolean property with default value")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/UniAddress.java

        static {
            final String ro = Config.getProperty("jcifs.smb1.resolveOrder");
            final InetAddress nbns = NbtAddress.getWINSAddress();
    
            try {
                baddr = Config.getInetAddress("jcifs.smb1.netbios.baddr", InetAddress.getByName("255.255.255.255"));
            } catch (final UnknownHostException uhe) {}
    
            if (ro == null || ro.length() == 0) {
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17K bytes
    - Click Count (0)
Back to Top