Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for PRINTER (0.05 sec)

  1. src/main/java/jcifs/internal/TreeConnectResponse.java

         *
         * @return tree id
         */
        int getTid();
    
        /**
         * Returns the service type of the connected share (e.g., A: for disk, LPT1: for printer, IPC for named pipe).
         *
         * @return service
         */
        String getService();
    
        /**
         * Indicates whether the connected share is part of a Distributed File System (DFS) namespace.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

        }
    
        /**
         * Test of getType method, of class SmbShareInfo.
         */
        @Test
        void testGetType() {
            // Test for TYPE_PRINTER
            SmbShareInfo printerShare = new SmbShareInfo("PRINTER", 1, "A printer");
            assertEquals(SmbFile.TYPE_PRINTER, printerShare.getType());
    
            // Test for TYPE_NAMED_PIPE
            SmbShareInfo pipeShare = new SmbShareInfo("PIPE", 3, "A named pipe");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            diskShare.type = 0;
            diskShare.remark = "Disk share";
    
            // Type 1 (printer share) -> TYPE_PRINTER (4)
            srvsvc.ShareInfo1 printerShare = new srvsvc.ShareInfo1();
            printerShare.netname = "PrinterShare";
            printerShare.type = 1;
            printerShare.remark = "Printer share";
    
            // Type 3 (named pipe) -> TYPE_NAMED_PIPE (16)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

            assertEquals(0, info.getFileIndex());
        }
    
        @ParameterizedTest
        @DisplayName("Test getType with different share types")
        @CsvSource({ "1, " + SmbConstants.TYPE_PRINTER, // Printer share
                "3, " + SmbConstants.TYPE_NAMED_PIPE, // Named pipe
                "0, " + SmbConstants.TYPE_SHARE, // Standard share
                "2, " + SmbConstants.TYPE_SHARE, // Unknown type defaults to share
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb1/com/SmbComTreeConnectAndX.java

    import jcifs.smb.NtlmPasswordAuthenticator;
    import jcifs.util.Hexdump;
    
    /**
     * SMB1 Tree Connect AndX request message.
     *
     * This command is used to connect to a shared resource
     * on the server, such as a file share or printer.
     */
    public class SmbComTreeConnectAndX extends AndXServerMessageBlock {
    
        private final boolean disconnectTid = false;
        private final String service;
        private byte[] password;
        private int passwordLength;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

        @ParameterizedTest
        @DisplayName("Test readDataWireFormat with various share types")
        @CsvSource({ "0, SHARE, Normal share", "1, PRINTER, Printer share", "3, IPC$, IPC share", "32768, HIDDEN, Hidden share", // 0x8000 - hidden flag in lower 16 bits
                "32769, HIDDENP, Hidden printer" // 0x8001 - hidden flag + printer type
        })
        void testReadDataWireFormatWithVariousShareTypes(int type, String name, String remark) throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/SmbTreeHandle.java

        /**
         * Gets the remote host name for this tree connection
         * @return the remote host name
         */
        String getRemoteHostName();
    
        /**
         * Gets the tree type (share type such as disk, printer, pipe, etc.)
         * @return the tree type
         */
        int getTreeType();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java

        /**
         * Share type constant for named pipe shares (IPC).
         */
        public static final byte SMB2_SHARE_TYPE_PIPE = 0x2;
        /**
         * Share type constant for printer shares.
         */
        public static final byte SMB2_SHARE_TYPE_PRINT = 0x3;
    
        /**
         * Share flag indicating manual caching of documents.
         */
        public static final int SMB2_SHAREFLAG_MANUAL_CACHING = 0x0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbShareInfo.java

     */
    public class SmbShareInfo implements FileEntry {
    
        /**
         * The network name of the share.
         */
        protected String netName;
        /**
         * The type of the share (e.g., disk, printer, named pipe).
         */
        protected int type;
        /**
         * A descriptive comment or remark about the share.
         */
        protected String remark;
    
        /**
         * Default constructor for SMB share information.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java

    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Tree Connect request message.
     *
     * This command is used to connect to a shared resource
     * on the server, such as a file share or printer.
     *
     * @author mbechler
     */
    public class Smb2TreeConnectRequest extends ServerMessageBlock2Request<Smb2TreeConnectResponse> {
    
        private int treeFlags;
        private final String path;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
Back to top