Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 26 for NbtAddress (0.21 seconds)

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

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

            return groupName;
        }
    
        /**
         * Checks the node type of this address.
         * @return {@link jcifs.smb1.netbios.NbtAddress#B_NODE},
         * {@link jcifs.smb1.netbios.NbtAddress#P_NODE}, {@link jcifs.smb1.netbios.NbtAddress#M_NODE},
         * {@link jcifs.smb1.netbios.NbtAddress#H_NODE}
         *
         * @throws UnknownHostException if the host cannot be resolved to find out.
         */
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.7K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/NbtAddressTest.java

            assertEquals("192.168.1.1", nbtAddress.getHostAddress());
            assertEquals("192.168.1.1", nbtAddress.getHostName());
        }
    
        @Test
        void testGetName() {
            // Test getName method
            mockName = new Name(mockConfig, "TEST", 0x20, null);
    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. src/test/java/jcifs/netbios/UniAddressTest.java

                // UniAddress only accepts InetAddress, NbtAddress (which implements Address), or Address
                // Testing with NbtAddress which doesn't return anything from toInetAddress
                NbtAddress nbtAddress = mock(NbtAddress.class);
                when(nbtAddress.toInetAddress()).thenReturn(null);
                UniAddress uniAddress = new UniAddress(nbtAddress);
                assertNull(uniAddress.toInetAddress());
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 16.4K bytes
    - Click Count (0)
  4. src/test/java/jcifs/netbios/NameQueryResponseTest.java

            recordNameField.set(nameQueryResponse, mockRecordName);
    
            NbtAddress[] addresses = new NbtAddress[2];
            // Create dummy NbtAddress objects for testing toString
            addresses[0] = new NbtAddress(mockRecordName, 0xC0A80101, false, 0); // 192.168.1.1
            addresses[1] = new NbtAddress(mockRecordName, 0x0A000005, true, 1); // 10.0.0.5
            addrEntryField.set(nameQueryResponse, addresses);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/netbios/NodeStatusResponse.java

        private final NbtAddress queryAddress;
    
        private int numberOfNames;
        private final byte[] macAddress;
        private byte[] stats;
    
        NbtAddress[] addressArray;
    
        /* It is a little awkward but prudent to pass the quering address
         * so that it may be included in the list of results. IOW we do
         * not want to create a new NbtAddress object for this particular
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/UniAddress.java

            if (addr instanceof NbtAddress) {
                return ((NbtAddress) addr).nextCalledName();
            }
            if (calledName != NbtAddress.SMBSERVER_NAME) {
                calledName = NbtAddress.SMBSERVER_NAME;
                return calledName;
            }
            return null;
        }
    
        /**
         * Return the underlying <code>NbtAddress</code> or {@code InetAddress}.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17K bytes
    - Click Count (0)
  7. src/main/java/jcifs/netbios/Lmhosts.java

         * @return resolved name, null if not found
         */
        public synchronized NbtAddress getByName(final String host, final CIFSContext tc) {
            return getByName(new Name(tc.getConfig(), host, 0x20, null), tc);
        }
    
        synchronized NbtAddress getByName(final Name name, final CIFSContext tc) {
            NbtAddress result = null;
    
            try {
                if (tc.getConfig().getLmHostsFileName() != null) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/netbios/NbtSocket.java

        private static final int BUFFER_SIZE = 512;
        private static final int DEFAULT_SO_TIMEOUT = 5000;
    
        private static LogStream log = LogStream.getInstance();
    
        private NbtAddress address;
        private Name calledName;
        private int soTimeout;
    
        /**
         * Constructs an unconnected NbtSocket.
         */
        public NbtSocket() {
        }
    
        /**
    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)
  9. src/test/java/jcifs/netbios/NameServicePacketTest.java

                // For testing purposes, we can return a fixed length or mock behavior
                // Create a dummy Name object for NbtAddress constructor
                Name dummyName = new Name(config, "DUMMY_NAME", 0, null);
                addrEntry[addrIndex] = new NbtAddress(dummyName, 0, false, NbtAddress.B_NODE);
                return 6; // NbtAddress is 6 bytes
            }
        }
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.9K bytes
    - Click Count (0)
  10. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

            }
            throw new UnknownHostException(name.name);
        }
    
        NbtAddress[] getNodeStatus(final NbtAddress addr) throws UnknownHostException {
            int n, srcHashCode;
            NodeStatusRequest request;
            NodeStatusResponse response = new NodeStatusResponse(addr);
            request = new NodeStatusRequest(new Name(NbtAddress.ANY_HOSTS_NAME, 0x00, null));
            request.addr = addr.getInetAddress();
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 17.6K bytes
    - Click Count (0)
Back to Top