Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 48 for laddr (0.03 sec)

  1. src/main/java/jcifs/smb1/UniAddress.java

                            continue;
                        }
                        if (possibleNTDomainOrWorkgroup) {
                            addr = lookupServerOrWorkgroup(hostname, baddr);
                        } else {
                            addr = NbtAddress.getByName(hostname, 0x20, null, baddr);
                        }
                        break;
                    case RESOLVER_DNS:
                        if (isAllDigits(hostname)) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfo.java

                    byte[] addr = new byte[4];
                    System.arraycopy(data, offset + 4, addr, 0, 4);
                    return InetAddress.getByAddress(addr);
                } else if (family == 23) { // AF_INET6
                    byte[] addr = new byte[16];
                    System.arraycopy(data, offset + 8, addr, 0, 16);
                    return InetAddress.getByAddress(addr);
                }
            } catch (Exception e) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/UniAddress.java

         * }
         */
    
        Object addr;
        String calledName;
    
        /**
         * Create a <code>UniAddress</code> by wrapping an {@code InetAddress} or
         * <code>NbtAddress</code>.
         *
         * @param addr
         *            wrapped address
         */
        public UniAddress(final Object addr) {
            if (addr == null) {
                throw new IllegalArgumentException();
            }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertEquals(SmbConstants.TYPE_WORKGROUP, locator("smb:///").getType());
    
            // Server vs Workgroup depends on NetBIOS name type
            Address addr = mock(Address.class);
            NetbiosAddress nb = mock(NetbiosAddress.class);
            when(addr.unwrap(NetbiosAddress.class)).thenReturn(nb);
            when(nb.getNameType()).thenReturn(0x1d); // workgroup code
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/Dfs.java

                _domains = null;
            }
            if (_domains != null) {
                return _domains.map;
            }
            try {
                final UniAddress addr = UniAddress.getByName(auth.domain, true);
                final SmbTransport trans = SmbTransport.getSmbTransport(addr, 0);
                final CacheEntry entry = new CacheEntry(Dfs.TTL * 10L);
    
                DfsReferral dr = trans.getDfsReferrals(auth, "", 0);
                if (dr != null) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NodeStatusResponseTest.java

            NbtAddress[] addresses = (NbtAddress[]) addressArrayField.get(response);
    
            NbtAddress addr = addresses[0];
            assertTrue(addr.groupName);
            assertEquals(3, addr.nodeType);
            assertTrue(addr.isBeingDeleted);
            assertTrue(addr.isInConflict);
            assertTrue(addr.isActive);
            assertTrue(addr.isPermanent);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/NbtAddress.java

         * @return a four byte array
         */
        public byte[] getAddress() {
            final byte[] addr = new byte[4];
            addr[0] = (byte) (this.address >>> 24 & 0xFF);
            addr[1] = (byte) (this.address >>> 16 & 0xFF);
            addr[2] = (byte) (this.address >>> 8 & 0xFF);
            addr[3] = (byte) (this.address & 0xFF);
            return addr;
        }
    
        /**
         * To convert this address to an <code>InetAddress</code>.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

            // Add a healthy channel manually for testing
            InetAddress addr = InetAddress.getByName("192.168.1.100");
            NetworkInterfaceInfo localInterface = new NetworkInterfaceInfo(addr, 1000);
            NetworkInterfaceInfo remoteInterface = new NetworkInterfaceInfo(addr, 1000);
            ChannelInfo healthyChannel = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/netbios/SessionRetargetResponsePacket.java

                throw new IOException("unexpected EOF reading netbios retarget session response");
            }
            final int addr = readInt4(buffer, bufferIndex);
            bufferIndex += 4;
            new NbtAddress(null, addr, false, NbtAddress.B_NODE);
            readInt2(buffer, bufferIndex);
            return this.length;
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                this.type = SmbConstants.TYPE_WORKGROUP;
                return true;
            }
    
            if (getShare() == null) {
                final NetbiosAddress addr = getAddress().unwrap(NetbiosAddress.class);
                if (addr != null) {
                    final int code = addr.getNameType();
                    if (code == 0x1d || code == 0x1b) {
                        this.type = SmbConstants.TYPE_WORKGROUP;
                        return true;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
Back to top