Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for sendrecv (0.04 sec)

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

                when(mockSmbPipeHandleInternal.isStale()).thenReturn(false);
                when(mockSmbPipeHandleInternal.sendrecv(buf, 0, 50, inB, 4280)).thenReturn(40);
    
                int result = handle.doSendReceiveFragment(buf, 0, 50, inB);
                assertEquals(40, result);
                verify(mockSmbPipeHandleInternal).sendrecv(buf, 0, 50, inB, 4280);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SIDCacheImplTest.java

            assertEquals("TESTDOM", s2.getDomainName());
            assertEquals(jcifs.SID.SID_TYPE_DOM_GRP, s2.getType());
    
            // Interaction: sendrecv invoked exactly once
            verify(handle, times(1)).sendrecv(any(jcifs.dcerpc.msrpc.MsrpcLookupSids.class));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_NONE_MAPPED, 0x00000107 })
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

                    .thenAnswer(inv -> inv.getArgument(1));
    
            int n = handle.sendrecv(new byte[10], 0, 0, new byte[20], 100);
            assertEquals(0, n, "Default response length is 0 unless protocol fills it");
        }
    
        @Test
        @DisplayName("sendrecv uses CallNamedPipe when PIPE_TYPE_CALL is set")
        void sendrecv_call_branch() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

                // Given: Spy to intercept sendrecv calls
                TestDcerpcHandle spyHandle = spy(new TestDcerpcHandle(mockContext, mockBinding));
                doNothing().when(spyHandle).sendrecv(any(DcerpcMessage.class));
    
                // When: Binding the handle
                spyHandle.bind();
    
                // Then: Should call sendrecv with bind message
                verify(spyHandle).sendrecv(any(DcerpcMessage.class));
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

                message.setFlags(request.getFlags());
                message.setTimeout((int) (context.getConfig().getWitnessRegistrationTimeout() / 1000));
    
                // Send the RPC request
                rpcHandle.sendrecv(message);
    
                // Create response from RPC message results
                WitnessRegisterResponse response = new WitnessRegisterResponse();
                response.setReturnCode(message.getReturnCode());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

            assertArrayEquals(new byte[] { 1, 2, 3 }, key);
            verify(tree, times(1)).getSession();
            verify(session, times(1)).getSessionKey();
        }
    
        @Test
        @DisplayName("sendrecv SMB2 path issues IOCTL and returns response length")
        void testSendRecvSmb2() throws IOException, CIFSException {
            when(pipe.ensureTreeConnected()).thenReturn(tree);
            when(tree.acquire()).thenReturn(tree);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SIDCacheImpl.java

        }
    
        void resolveSids(final DcerpcHandle handle, final LsaPolicyHandle policyHandle, final jcifs.SID[] sids) throws IOException {
            final MsrpcLookupSids rpc = new MsrpcLookupSids(policyHandle, sids);
            handle.sendrecv(rpc);
            switch (rpc.retval) {
            case 0:
            case NtStatus.NT_STATUS_NONE_MAPPED:
            case 0x00000107: // NT_STATUS_SOME_NOT_MAPPED
                break;
            default:
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

            }
            return this.output;
        }
    
        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbPipeHandleInternal#sendrecv(byte[], int, int, byte[], int)
         */
        @SuppressWarnings("resource")
        @Override
        public int sendrecv(final byte[] buf, final int off, final int length, final byte[] inB, final int maxRecvSize) throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

            synchronized (this) {
                try {
                    state = 1;
                    final DcerpcMessage bind = new DcerpcBind(binding, this);
                    sendrecv(bind);
                } catch (final IOException ioe) {
                    state = 0;
                    throw ioe;
                }
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbTransport.java

            throw new IOException("Failed to establish session with " + address);
        }
    
        private void negotiate(int port, final ServerMessageBlock resp) throws IOException {
            /* We cannot use Transport.sendrecv() yet because
             * the Transport thread is not setup until doConnect()
             * returns and we want to supress all communication
             * until we have properly negotiated.
             */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
Back to top