Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ShareType (0.09 sec)

  1. src/test/java/jcifs/internal/TreeConnectResponseTest.java

                        Smb2TreeConnectResponse.SMB2_SHARE_TYPE_PRINT };
    
                for (byte shareType : shareTypes) {
                    setPrivateField(response, "shareType", shareType);
                    assertEquals(shareType, response.getShareType(), "Should handle share type: " + shareType);
                }
            }
    
            @Test
            @DisplayName("Should handle combined flags correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java

            }
            super.prepare(next);
        }
    
        /**
         * Returns the type of the connected share (disk, pipe, or print).
         *
         * @return the shareType
         */
        public byte getShareType() {
            return this.shareType;
        }
    
        /**
         * Returns the flags describing characteristics of the connected share.
         *
         * @return the shareFlags
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        }
    
        /**
         * Helper method to create a valid response buffer
         */
        private byte[] createValidResponseBuffer(int shareType, int shareFlags, int capabilities, int maxAccess) {
            byte[] buffer = new byte[256];
            SMBUtil.writeInt2(16, buffer, 0);
            buffer[2] = (byte) shareType;
            buffer[3] = 0;
            SMBUtil.writeInt4(shareFlags, buffer, 4);
            SMBUtil.writeInt4(capabilities, buffer, 8);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

        @Test
        @DisplayName("Test readDataWireFormat with single share")
        void testReadDataWireFormatSingleShare() throws Exception {
            // Prepare test data
            String shareName = "SHARE1";
            int shareType = 0x00000000; // Disk share
            String remark = "Test share";
    
            // Calculate buffer size
            int shareNameSize = 14; // 13 bytes + null terminator (fixed field)
            int typeSize = 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
Back to top