Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for recv (0.39 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

                when(mockSmbPipeHandleInternal.sendrecv(buf, 0, 50, inB, 4280)).thenReturn(40);
                when(mockSmbPipeHandleInternal.recv(inB, 40, 40)).thenReturn(40);
    
                int result = handle.doSendReceiveFragment(buf, 0, 50, inB);
                assertEquals(80, result);
                verify(mockSmbPipeHandleInternal).recv(inB, 40, 40);
            }
    
            @Test
            @DisplayName("Should throw IOException when handle is stale")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // Act
            byte[] buf = new byte[16];
            byte[] recv = new byte[16];
            int r = spyHandle.sendrecv(buf, 2, 4, recv, 16);
    
            // Assert
            assertEquals(7, r);
            verify(mockOut).write(eq(buf), eq(2), eq(4));
            verify(mockIn).read(eq(recv));
        }
    
        @Test
        @DisplayName("recv delegates to input.readDirect with args")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

            if (fraglen > getMaxRecv()) {
                throw new IOException("Unexpected fragment length: " + fraglen);
            }
    
            while (have < fraglen) {
                final int r = this.handle.recv(inB, have, fraglen - have);
                if (r == 0) {
                    throw new IOException("Unexpected EOF");
                }
                have += r;
            }
    
            return have;
        }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            verify(tree).send(captor.capture(), any());
            assertNotNull(captor.getValue());
        }
    
        @Test
        @DisplayName("recv delegates to input.readDirect and returns its value")
        void testRecvDelegation() throws Exception {
            SmbPipeHandleImpl spyTarget = spy(target);
            SmbPipeInputStream in = mock(SmbPipeInputStream.class);
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

         * @param off offset in the buffer
         * @param length maximum length to receive
         * @return number of bytes received
         * @throws IOException if an I/O error occurs
         */
        int recv(byte[] buf, int off, int length) throws IOException;
    
        /**
         * Send data to the pipe
         *
         * @param buf buffer containing data to send
         * @param off offset in the buffer
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/DcerpcBindTest.java

                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")
            void testPackageConstructorWithNullBinding() throws Exception {
                // Given
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

                final SmbPipeInputStream in = getInput();
                out.write(buf, off, length);
                return in.read(inB);
            }
        }
    
        @Override
        public int recv(final byte[] buf, final int off, final int len) throws IOException {
            return getInput().readDirect(buf, off, len);
    
        }
    
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/util/transport/Transport.java

                        log.trace("Remote closed connection");
                    } else if (timeout) {
                        log.debug("socket timeout in non peek state", ex);
                    } else {
                        log.debug("recv failed", ex);
                    }
    
                    synchronized (this) {
                        try {
                            disconnect(!timeout, false);
                        } catch (final IOException ioe) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java

                return false;
            }
    
            EncryptionNegotiateContext rec = null;
            for (final NegotiateContextRequest rnc : req.getNegotiateContexts()) {
                if (rnc instanceof EncryptionNegotiateContext) {
                    rec = (EncryptionNegotiateContext) rnc;
                }
            }
            if (rec == null) {
                return false;
            }
    
            boolean valid = false;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  10. src/main/webapp/css/bootstrap.min.css.map

    2.5em;\n  padding-left: 0;\n}\n.form-switch.form-check-reverse .form-check-input {\n  margin-right: -2.5em;\n  margin-left: 0;\n}\n\n.form-check-inline {\n  display: inline-block;\n  margin-right: 1rem;\n}\n\n.btn-check {\n  position: absolute;\n  clip: rect(0, 0, 0, 0);\n  pointer-events: none;\n}\n.btn-check[disabled] + .btn, .btn-check:disabled + .btn {\n  pointer-events: none;\n  filter: none;\n  opacity: 0.65;\n}\n\n[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus) {\n...
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Sun Jan 12 06:14:02 UTC 2025
    - 575.5K bytes
    - Viewed (0)
Back to top