Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for firstCalledName (1.62 sec)

  1. src/test/java/jcifs/netbios/UniAddressTest.java

                UniAddress uniAddress = new UniAddress(mockNbtAddress);
                when(mockNbtAddress.firstCalledName()).thenReturn("NBT_NAME");
                assertEquals("NBT_NAME", uniAddress.firstCalledName());
                verify(mockNbtAddress, times(1)).firstCalledName();
            }
    
            @Test
            void shouldReturnSmbServerNameWhenInetAddressIsDotQuadIP() throws UnknownHostException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/NbtAddressTest.java

            // Test firstCalledName with a regular hostname
            mockName = new Name(mockConfig, "MYSERVER", 0x20, null);
            NbtAddress nbtAddress = new NbtAddress(mockName, testAddressInt, false, NbtAddress.H_NODE);
            assertEquals("MYSERVER", nbtAddress.firstCalledName());
        }
    
        @Test
        void testFirstCalledName_IpAddress() {
            // Test firstCalledName with an IP address string
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/UniAddress.java

         * method is used exclusively by the <code>jcifs.smb1.smb1</code> package.
         *
         * @return the first called name to try
         */
    
        public String firstCalledName() {
            if (addr instanceof NbtAddress) {
                return ((NbtAddress) addr).firstCalledName();
            }
            calledName = ((InetAddress) addr).getHostName();
            if (isDotQuadIP(calledName)) {
                calledName = NbtAddress.SMBSERVER_NAME;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NbtAddress.java

        /**
         * Guess next called name to try for session establishment. These
         * methods are used by the smb package.
         *
         * @return guessed name
         */
        @Override
        public String firstCalledName() {
    
            this.calledName = this.hostName.name;
    
            if (Character.isDigit(this.calledName.charAt(0))) {
                int i, len, dots;
                char[] data;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbTransport.java

                    && !NtlmPasswordAuthentication.NULL.equals(auth);
        }
    
        void ssn139() throws IOException {
            final Name calledName = new Name(address.firstCalledName(), 0x20, null);
            do {
                /* These Socket constructors attempt to connect before SO_TIMEOUT can be applied
                if (localAddr == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/NbtAddress.java

         * methods are used by the smb package.
         */
    
        /**
         * Gets the first called name for session establishment.
         *
         * @return the first called name to try
         */
        public String firstCalledName() {
    
            calledName = hostName.name;
    
            if (Character.isDigit(calledName.charAt(0))) {
                int i, len, dots;
                char[] data;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.7K bytes
    - Viewed (0)
Back to top