Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getPipeType (1.54 sec)

  1. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

            this.pipe = pipe;
            this.transact = (pipe.getPipeType() & SmbPipeResource.PIPE_TYPE_TRANSACT) == SmbPipeResource.PIPE_TYPE_TRANSACT;
            this.call = (pipe.getPipeType() & SmbPipeResource.PIPE_TYPE_CALL) == SmbPipeResource.PIPE_TYPE_CALL;
            this.openFlags = pipe.getPipeType() & 0xFFFF00FF | SmbConstants.O_EXCL;
            this.access = pipe.getPipeType() & 7 | 0x20000;
            this.uncPath = this.pipe.getUncPath();
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbNamedPipeTest.java

                // 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
            @DisplayName("Rejects non-IPC$ URLs")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        }
    
        @Test
        @DisplayName("getPipe, getPipeType, getUncPath delegate to underlying pipe")
        void testBasicAccessors() {
            when(pipe.getPipeType()).thenReturn(0x123456);
            assertSame(pipe, target.getPipe());
            assertEquals(0x123456, target.getPipeType());
            assertEquals("\\\\pipe\\\\my-pipe", target.getUncPath());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            });
        }
    
        @Test
        @DisplayName("getPipeType and getPipe delegate to SmbNamedPipe")
        void pipeType_and_getPipe() {
            when(pipe.getPipeType()).thenReturn(12345);
            SmbPipeHandleImpl handle = new SmbPipeHandleImpl(pipe);
            assertEquals(12345, handle.getPipeType());
            assertSame(pipe, handle.getPipe());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbPipeResource.java

         */
        int PIPE_TYPE_UNSHARED = 0x800;
    
        /**
         * Gets the type of this pipe.
         *
         * @return the type of the pipe
         */
        int getPipeType();
    
        /**
         * Create a pipe handle
         *
         * @return pipe handle, needs to be closed when finished
         */
        SmbPipeHandle openPipe();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

     */
    public interface SmbPipeHandleInternal extends SmbPipeHandle {
    
        /**
         * Gets the type of this pipe.
         *
         * @return the pipe type
         */
        int getPipeType();
    
        /**
         * Gets the session key from the underlying SMB session.
         *
         * @return session key of the underlying smb session
         * @throws CIFSException if an error occurs retrieving the session key
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbNamedPipe.java

         */
        @Override
        public int getType() throws SmbException {
            return TYPE_NAMED_PIPE;
        }
    
        /**
         * @return the pipe type
         */
        @Override
        public int getPipeType() {
            return this.pipeType;
        }
    
        /**
         * @return a handle for interacting with the pipe
         */
        @Override
        public SmbPipeHandle openPipe() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbFileInputStream.java

                // one extra acquire to keep this open till the stream is released
                if (this.file instanceof SmbNamedPipe) {
                    this.handle = this.file.openUnshared(SmbConstants.O_EXCL, ((SmbNamedPipe) this.file).getPipeType() & 0xFF0000, this.sharing,
                            SmbConstants.ATTR_NORMAL, 0);
                } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
Back to top