Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for TYPE_NAMED_PIPE (0.57 sec)

  1. src/test/java/jcifs/smb/SmbNamedPipeTest.java

                SmbNamedPipe pipe = new SmbNamedPipe(url, SmbPipeResource.PIPE_TYPE_RDWR, ctx());
    
                // Assert: type is named pipe and pipe type preserved
                assertEquals(SmbConstants.TYPE_NAMED_PIPE, pipe.getType(), "Type should be TYPE_NAMED_PIPE");
                assertEquals(SmbPipeResource.PIPE_TYPE_RDWR, pipe.getPipeType(), "Pipe type should match constructor");
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbNamedPipe.java

         */
        public SmbNamedPipe(final String url, final int pipeType) throws MalformedURLException, UnknownHostException {
            super(url);
            this.pipeType = pipeType;
            type = TYPE_NAMED_PIPE;
        }
    
        /**
         * Constructs an SmbNamedPipe for a specified pipe on an SMB server.
         *
         * @param url the SMB URL of the named pipe
         * @param pipeType the type of the pipe
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

            assertEquals(SmbFile.TYPE_PRINTER, printerShare.getType());
    
            // Test for TYPE_NAMED_PIPE
            SmbShareInfo pipeShare = new SmbShareInfo("PIPE", 3, "A named pipe");
            assertEquals(SmbFile.TYPE_NAMED_PIPE, pipeShare.getType());
    
            // Test for TYPE_SHARE (disk share)
            SmbShareInfo diskShare = new SmbShareInfo("DISK", 0, "A disk share");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

                    if (file.type == SmbFile.TYPE_NAMED_PIPE) {
                        request.minCount = request.maxCount = request.remaining = 1024;
                    }
                    file.send(request, response);
                } catch (final SmbException se) {
                    if (file.type == SmbFile.TYPE_NAMED_PIPE && se.getNtStatus() == NtStatus.NT_STATUS_PIPE_BROKEN) {
                        return -1;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            printerShare.netname = "PrinterShare";
            printerShare.type = 1;
            printerShare.remark = "Printer share";
    
            // Type 3 (named pipe) -> TYPE_NAMED_PIPE (16)
            srvsvc.ShareInfo1 pipeShare = new srvsvc.ShareInfo1();
            pipeShare.netname = "PipeShare";
            pipeShare.type = 3;
            pipeShare.remark = "Named pipe";
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbNamedPipe.java

            setNonPooled(unshared);
            if (!getLocator().isIPC()) {
                throw new MalformedURLException("Named pipes are only valid on IPC$");
            }
            this.fileLocator.updateType(TYPE_NAMED_PIPE);
        }
    
        /**
         * Open the Named Pipe resource specified by the url
         * parameter. The pipeType parameter should be at least one of
         * the <code>PIPE_TYPE</code> flags combined with the bitwise OR
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbShareInfo.java

             */
            switch (type & 0xFFFF) {
            case 1:
                return SmbFile.TYPE_PRINTER;
            case 3:
                return SmbFile.TYPE_NAMED_PIPE;
            }
            return SmbFile.TYPE_SHARE;
        }
    
        @Override
        public int getAttributes() {
            return SmbFile.ATTR_READONLY | SmbFile.ATTR_DIRECTORY;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/net/SmbShareInfo.java

             */
            switch (this.type & 0xFFFF) {
            case 1:
                return SmbConstants.TYPE_PRINTER;
            case 3:
                return SmbConstants.TYPE_NAMED_PIPE;
            }
            return SmbConstants.TYPE_SHARE;
        }
    
        @Override
        public int getAttributes() {
            return SmbConstants.ATTR_READONLY | SmbConstants.ATTR_DIRECTORY;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/SmbResourceLocator.java

         */
        boolean isIPC();
    
        /**
         * Returns type of of object this <code>SmbFile</code> represents.
         *
         * @return <code>TYPE_FILESYSTEM, TYPE_WORKGROUP, TYPE_SERVER,
         * TYPE_NAMED_PIPE</code>, or <code>TYPE_SHARE</code> in which case it may be either <code>TYPE_SHARE</code>,
         *         <code>TYPE_PRINTER</code> or <code>TYPE_COMM</code>.
         * @throws CIFSException if the type cannot be determined
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
Back to top