Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for Smb2IoctlResponse (0.1 seconds)

  1. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponse.java

    import jcifs.smb.SmbException;
    
    /**
     * SMB2 IOCTL response message. This response contains the result of a device control
     * operation on the server.
     *
     * @author mbechler
     *
     */
    public class Smb2IoctlResponse extends ServerMessageBlock2Response {
    
        private final byte[] outputBuffer;
        private int ctlCode;
        private byte[] fileId;
        private int ioctlFlags;
        private Decodable outputData;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 8.9K bytes
    - Click Count (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            System.arraycopy(header, 0, packet, 0, header.length);
            System.arraycopy(body, 0, packet, header.length, body.length);
    
            BaseConfiguration config = new BaseConfiguration(true);
            Smb2IoctlResponse resp = new Smb2IoctlResponse(config);
    
            int read = resp.decode(packet, 0);
            assertTrue(read >= packet.length, "Decoded length should cover entire packet");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 10.9K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequest.java

            this.outputBuffer = outputBuffer;
            this.maxOutputResponse = outputBuffer.length;
        }
    
        @Override
        protected Smb2IoctlResponse createResponse(final CIFSContext tc, final ServerMessageBlock2Request<Smb2IoctlResponse> req) {
            return new Smb2IoctlResponse(tc.getConfig(), this.outputBuffer, this.controlCode);
        }
    
        /**
         * Set the IOCTL flags
         * @param flags the flags to set
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb/SmbPipeInputStream.java

    import jcifs.CIFSException;
    import jcifs.internal.smb1.trans.TransPeekNamedPipe;
    import jcifs.internal.smb1.trans.TransPeekNamedPipeResponse;
    import jcifs.internal.smb2.ioctl.Smb2IoctlRequest;
    import jcifs.internal.smb2.ioctl.Smb2IoctlResponse;
    import jcifs.internal.smb2.ioctl.SrvPipePeekResponse;
    
    /**
     * Input stream for reading from SMB named pipes.
     *
     * This class provides a stream-based interface for reading
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  5. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(tree.isSMB2()).thenReturn(true);
            when(tree.getConfig()).thenReturn(config);
            when(config.getTransactionBufferSize()).thenReturn(65535);
    
            Smb2IoctlResponse ioResp = mock(Smb2IoctlResponse.class);
            SrvPipePeekResponse peek = mock(SrvPipePeekResponse.class);
            when(peek.getReadDataAvailable()).thenReturn(7);
            when(ioResp.getOutputData()).thenReturn(peek);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

    import jcifs.internal.smb1.trans.TransWaitNamedPipe;
    import jcifs.internal.smb1.trans.TransWaitNamedPipeResponse;
    import jcifs.internal.smb2.ioctl.Smb2IoctlRequest;
    import jcifs.internal.smb2.ioctl.Smb2IoctlResponse;
    import jcifs.util.ByteEncodable;
    
    /**
     * @author mbechler
     *
     */
    class SmbPipeHandleImpl implements SmbPipeHandleInternal {
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            when(fileHandle.acquire()).thenReturn(fileHandle);
            when(fileHandle.getTree()).thenReturn(tree);
    
            // Mock response and send behavior
            Smb2IoctlResponse resp = mock(Smb2IoctlResponse.class);
            when(resp.getOutputLength()).thenReturn(42);
            when(tree.send(any(Smb2IoctlRequest.class), any())).thenReturn(resp);
    
            byte[] out = new byte[10];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.7K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbCopyUtil.java

    import jcifs.internal.smb1.trans2.Trans2SetFileInformationResponse;
    import jcifs.internal.smb2.info.Smb2SetInfoRequest;
    import jcifs.internal.smb2.ioctl.Smb2IoctlRequest;
    import jcifs.internal.smb2.ioctl.Smb2IoctlResponse;
    import jcifs.internal.smb2.ioctl.SrvCopyChunkCopyResponse;
    import jcifs.internal.smb2.ioctl.SrvCopychunk;
    import jcifs.internal.smb2.ioctl.SrvCopychunkCopy;
    import jcifs.internal.smb2.ioctl.SrvRequestResumeKeyResponse;
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 16.6K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            // For now, we're preparing the request structure correctly
    
            // TODO: Integration point - send request through session.send()
            // Smb2IoctlResponse response = (Smb2IoctlResponse) session.send(request);
            // if (response.isSuccess()) {
            //     parseNetworkInterfaces(response.getOutputData());
            // }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

            setupMockContext();
            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE, TEST_FILE_ID, TEST_OUTPUT_BUFFER);
    
            Smb2IoctlResponse response = request.createResponse(mockContext, request);
    
            assertNotNull(response);
            verify(mockContext).getConfig();
        }
    
        @Test
        @DisplayName("Test setFlags method")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.3K bytes
    - Click Count (0)
Back to Top