- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for getInitialCredits (0.07 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/test/java/jcifs/internal/SmbNegotiationResponseTest.java
verify(negotiationResponse).getInitialCredits(); } @Test @DisplayName("Test getInitialCredits returns large value") void testGetInitialCreditsLarge() { // Arrange int expectedCredits = 256; when(negotiationResponse.getInitialCredits()).thenReturn(expectedCredits); // Act int credits = negotiationResponse.getInitialCredits(); // Assert
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 20.6K bytes - Click Count (0) -
src/main/java/jcifs/internal/SmbNegotiationResponse.java
int getTransactionBufferSize(); /** * Gets the number of initial credits granted by the server for SMB2. * * @return number of initial credits the server grants */ int getInitialCredits(); /** * Checks whether a connection can be reused for the given configuration. * * @param tc the CIFS context to check compatibility with
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateResponse.java
public Smb2NegotiateResponse(final Configuration cfg) { super(cfg); } /** * {@inheritDoc} * * @see jcifs.internal.SmbNegotiationResponse#getInitialCredits() */ @Override public int getInitialCredits() { return getCredit(); } /** * Gets the SMB dialect revision selected by the server. * * @return the dialectRevision */
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 24K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
Field creditField = ServerMessageBlock2.class.getDeclaredField("credit"); creditField.setAccessible(true); creditField.set(response, 128); // When int credits = response.getInitialCredits(); // Then assertEquals(128, credits); } @Test @DisplayName("Should return dialect revision") void testGetDialectRevision() throws Exception { // Given
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 32.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportImpl.java
throw new CIFSException("Server returned invalid dialect verison in multi protocol negotiation"); } final int permits = r.getInitialCredits(); if (permits > 0) { this.credits.release(permits); } Arrays.fill(this.sbuf, (byte) 0);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 69.8K bytes - Click Count (0)