Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 11 for TYPE_NAMED_PIPE (0.31 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5.2K bytes
    - Click Count (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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.5K bytes
    - Click Count (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");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFile.java

         */
        public static final int TYPE_SHARE = 0x08;
        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
         * represents is a named pipe.
         */
        public static final int TYPE_NAMED_PIPE = 0x10;
        /**
         * Returned by {@link #getType()} if the resource this {@code SmbFile}
         * represents is a printer.
         */
        public static final int TYPE_PRINTER = 0x20;
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/SmbConstants.java

         */
        int TYPE_SHARE = 0x08;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a named pipe.
         */
        int TYPE_NAMED_PIPE = 0x10;
        /**
         * Returned by {@link jcifs.SmbResource#getType()} if the resource this <code>SmbFile</code>
         * represents is a printer.
         */
        int TYPE_PRINTER = 0x20;
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:49:49 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  6. 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);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  7. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  8. 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)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            assertEquals(SmbConstants.TYPE_FILESYSTEM, locator("smb://server/share/path").getType());
    
            // Named pipe for IPC$ root
            assertEquals(SmbConstants.TYPE_NAMED_PIPE, locator("smb://server/IPC$/").getType());
    
            // Share when share set but no path
            assertEquals(SmbConstants.TYPE_SHARE, locator("smb://server/share/").getType());
    
            // Workgroup when no authority
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  10. src/main/java/jcifs/http/NetworkExplorer.java

                }
            }
            dirCount = fileCount = 0;
            maxLen = 28;
            for (i = 0; i < dirents.length; i++) {
                try {
                    if (dirents[i].getType() == SmbConstants.TYPE_NAMED_PIPE) {
                        continue;
                    }
                } catch (final SmbAuthException sae) {
                    log.warn("Auth failed", sae);
                } catch (final SmbException se) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 23.4K bytes
    - Click Count (0)
Back to Top