Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for max_recv (1.34 sec)

  1. src/main/java/jcifs/smb1/dcerpc/DcerpcBind.java

        }
    
        DcerpcBinding binding;
        int max_xmit, max_recv;
    
        /**
         * Constructs a new DcerpcBind message.
         */
        public DcerpcBind() {
        }
    
        DcerpcBind(final DcerpcBinding binding, final DcerpcHandle handle) {
            this.binding = binding;
            max_xmit = handle.max_xmit;
            max_recv = handle.max_recv;
            ptype = 11;
            flags = DCERPC_FIRST_FRAG | DCERPC_LAST_FRAG;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/DcerpcBind.java

        }
    
        private DcerpcBinding binding;
        private int max_xmit, max_recv;
    
        /**
         * Construct bind message
         *
         */
        public DcerpcBind() {
        }
    
        DcerpcBind(final DcerpcBinding binding, final DcerpcHandle handle) {
            this.binding = binding;
            this.max_xmit = handle.getMaxXmit();
            this.max_recv = handle.getMaxRecv();
            this.ptype = 11;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

            out.write(buf, off, length);
        }
    
        @Override
        protected void doReceiveFragment(final byte[] buf, final boolean isDirect) throws IOException {
            int off, flags, length;
    
            if (buf.length < max_recv) {
                throw new IllegalArgumentException("buffer too small");
            }
    
            if (isStart && !isDirect) { // start of new frag, do trans
                off = in.read(buf, 0, 1024);
            } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

            tcField.setAccessible(true);
            tcField.set(handle, mockContext);
    
            // Set max_recv field using reflection (default is 4280 in parent class)
            Field maxRecvField = DcerpcHandle.class.getDeclaredField("max_recv");
            maxRecvField.setAccessible(true);
            maxRecvField.set(handle, 4280);
    
            // Inject mocks using reflection
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcHandle.java

         *
         * @return the binding
         */
        public DcerpcBinding getBinding() {
            return this.binding;
        }
    
        /**
         * @return the max_recv
         */
        int getMaxRecv() {
            return this.max_recv;
        }
    
        /**
         * @return the max_xmit
         */
        int getMaxXmit() {
            return this.max_xmit;
        }
    
        /**
         * Get a handle to a service
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

        /**
         * Maximum transmit buffer size for DCERPC messages
         */
        protected int max_xmit = 4280;
        /**
         * Maximum receive buffer size for DCERPC messages
         */
        protected int max_recv = max_xmit;
        /**
         * The current state of the DCERPC connection
         */
        protected int state = 0;
        /**
         * The security provider for authentication and message protection
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                assertEquals(maxXmit, maxXmitField.get(bindWithParams), "Max xmit should be set");
    
                Field maxRecvField = DcerpcBind.class.getDeclaredField("max_recv");
                maxRecvField.setAccessible(true);
                assertEquals(maxRecv, maxRecvField.get(bindWithParams), "Max recv should be set");
            }
    
            @Test
            @DisplayName("Package constructor should handle null binding")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

            void testMaxValuesConfiguration() {
                // When: Getting max transmission values
                int maxRecv = handle.getMaxRecv();
                int maxXmit = handle.getMaxXmit();
    
                // Then: Should return positive values
                assertTrue(maxRecv > 0);
                assertTrue(maxXmit > 0);
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
Back to top