Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 8 of 8 for nextCalledName (0.07 seconds)

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

  1. src/test/java/jcifs/AddressTest.java

        }
    
        @Test
        @DisplayName("nextCalledName should return valid name for fallback attempts")
        void testNextCalledNameContract() {
            // Given
            String expectedNextName = "SERVER15";
            when(mockAddress.nextCalledName(mockContext)).thenReturn(expectedNextName);
    
            // When
            String nextName = mockAddress.nextCalledName(mockContext);
    
            // Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 4.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/netbios/UniAddressTest.java

                UniAddress uniAddress = new UniAddress(mockNbtAddress);
                when(mockNbtAddress.nextCalledName(mockCIFSContext)).thenReturn("NEXT_NBT_NAME");
                assertEquals("NEXT_NBT_NAME", uniAddress.nextCalledName(mockCIFSContext));
                verify(mockNbtAddress, times(1)).nextCalledName(mockCIFSContext);
            }
    
            @Test
    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)
  3. src/main/java/jcifs/netbios/UniAddress.java

         * @param tc
         *            context to use
         *
         * @return guessed alternate name
         */
        @Override
        public String nextCalledName(final CIFSContext tc) {
            if (this.addr instanceof NbtAddress) {
                return ((NbtAddress) this.addr).nextCalledName(tc);
            }
            if (this.calledName != NbtAddress.SMBSERVER_NAME) {
                this.calledName = NbtAddress.SMBSERVER_NAME;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  4. src/main/java/jcifs/Address.java

         * methods are used by the smb package.
         *
         * @param tc the transport context to use for name resolution
         *
         * @return guessed name
         */
        String nextCalledName(CIFSContext tc);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/UniAddress.java

         * method is used exclusively by the <code>jcifs.smb1.smb1</code> package.
         *
         * @return the next called name to try
         */
    
        public String nextCalledName() {
            if (addr instanceof NbtAddress) {
                return ((NbtAddress) addr).nextCalledName();
            }
            if (calledName != NbtAddress.SMBSERVER_NAME) {
                calledName = NbtAddress.SMBSERVER_NAME;
                return calledName;
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 17K bytes
    - Click Count (0)
  6. src/main/java/jcifs/netbios/NbtAddress.java

            return this.calledName;
        }
    
        /**
         *
         * @param tc
         *            context to use
         * @return net name to try
         */
        @Override
        public String nextCalledName(final CIFSContext tc) {
    
            if (this.calledName == this.hostName.name) {
                this.calledName = SMBSERVER_NAME;
            } else if (SMBSERVER_NAME.equals(this.calledName)) {
    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)
  7. src/main/java/jcifs/smb1/netbios/NbtAddress.java

        }
    
        /**
         * Gets the next called name for session establishment.
         *
         * @return the next called name to try, or null if no more names available
         */
        public String nextCalledName() {
    
            if (calledName == hostName.name) {
                calledName = SMBSERVER_NAME;
            } else if (calledName == SMBSERVER_NAME) {
                NbtAddress[] addrs;
    
                try {
    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)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

                default:
                    disconnect(true);
                    throw new NbtException(NbtException.ERR_SSN_SRVC, 0);
                }
            } while ((calledName.name = this.address.nextCalledName(tc)) != null);
    
            throw new IOException("Failed to establish session with " + this.address);
        }
    
        private SmbNegotiation negotiate(int prt) throws IOException {
            /*
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
Back to Top