Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for TYPE_NAMED_PIPE (0.11 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/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)
  3. 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)
  4. src/main/java/jcifs/smb/SmbFileInputStream.java

            this.access = access;
            this.sharing = sharing;
    
            try (SmbTreeHandleInternal th = file.ensureTreeConnected()) {
                this.smb2 = th.isSMB2();
                if (file.getType() != SmbConstants.TYPE_NAMED_PIPE) {
                    try (SmbFileHandle h = ensureOpen()) {}
                    this.openFlags &= ~(SmbConstants.O_CREAT | SmbConstants.O_TRUNC);
                }
    
                init(th);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  5. 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)
  6. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

        }
    
        @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)
  7. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

            void namedPipeBrokenPipeReturnsMinusOne() throws Exception {
                when(mockTree.isSMB2()).thenReturn(false);
                when(mockFile.getType()).thenReturn(SmbConstants.TYPE_NAMED_PIPE);
    
                // th.send(request, response, ...) throws SmbException with NT_STATUS_PIPE_BROKEN
                doThrow(new SmbException(NtStatus.NT_STATUS_PIPE_BROKEN, false)).when(mockTree)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/test/java/jcifs/SmbConstantsTest.java

            assertEquals(0x02, SmbConstants.TYPE_WORKGROUP);
            assertEquals(0x04, SmbConstants.TYPE_SERVER);
            assertEquals(0x08, SmbConstants.TYPE_SHARE);
            assertEquals(0x10, SmbConstants.TYPE_NAMED_PIPE);
            assertEquals(0x20, SmbConstants.TYPE_PRINTER);
            assertEquals(0x40, SmbConstants.TYPE_COMM);
        }
    
        @Test
        @DisplayName("Should define open flags constants")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
Back to top