- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for isPrimary (4.41 sec)
-
src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java
* * @return true if primary */ public boolean isPrimary() { return isPrimary; } /** * Set primary channel flag * * @param primary true if primary */ public void setPrimary(boolean primary) { this.isPrimary = primary; } /** * Get number of bytes sent *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 10.6K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransactionResponse.java
boolean hasMore = true; boolean isPrimary = true; byte[] txn_buf; /* for doNetEnum and doFindFirstNext */ int status; int numEntries; FileEntry[] results; SmbComTransactionResponse() { txn_buf = null; } @Override void reset() { super.reset(); bufDataStart = 0; isPrimary = hasMore = true;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 5.9K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/SmbComTransaction.java
void reset() { super.reset(); isPrimary = hasMore = true; } void reset(final int key, final String lastName) { reset(); } @Override public boolean hasMoreElements() { return hasMore; } @Override public Object nextElement() { if (isPrimary) { isPrimary = false;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 10.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransactionResponse.java
this.bufDataStart = 0; this.isPrimary = this.hasMore = true; this.parametersDone = this.dataDone = false; } @Override public boolean hasMoreElements() { return this.errorCode == 0 && this.hasMore; } @Override public SmbComTransactionResponse nextElement() { if (this.isPrimary) { this.isPrimary = false; } return this;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 12.3K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComTransactionResponseTest.java
DummyResponse d = new DummyResponse(); // Initially isPrimary is true (inherited constructor) SmbComTransactionResponse r1 = (SmbComTransactionResponse) d.nextElement(); assertSame(d, r1, "nextElement should return the same instance"); // After first call isPrimary should be false assertFalse(d.getIsPrimary(), "isPrimary should be cleared after first call"); // Second call keeps the same state
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb1/trans/SmbComTransaction.java
} @Override public boolean hasMoreElements() { return this.hasMore; } @Override public SmbComTransaction nextElement() { if (this.isPrimary) { this.isPrimary = false; // primarySetupOffset // SMB_COM_TRANSACTION: 61 = 32 SMB header + 1 (word count) + 28 (fixed words)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17.3K bytes - Viewed (0) -
docs/smb3-features/03-multi-channel-design.md
private final AtomicLong requestsSent; private final AtomicLong requestsReceived; private final AtomicLong errors; // Channel binding private byte[] bindingHash; private boolean isPrimary; public ChannelInfo(String id, SmbTransport transport, NetworkInterfaceInfo local, NetworkInterfaceInfo remote) { this.channelId = id; this.transport = transport;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 02:53:50 UTC 2025 - 39.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
assertEquals(remoteInterface, channelInfo.getRemoteInterface()); assertEquals(ChannelState.DISCONNECTED, channelInfo.getState()); assertFalse(channelInfo.isPrimary()); assertEquals(0, channelInfo.getBytesSent()); assertEquals(0, channelInfo.getBytesReceived()); } @Test void testStateTransitions() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans2/Trans2SetFileInformationResponseTest.java
void testHasMoreElements() { // Initially should have more elements if error code is 0 assertTrue(response.hasMoreElements()); // After calling nextElement once, isPrimary becomes false but hasMore is still true initially response.nextElement(); // Can still have more elements assertTrue(response.hasMoreElements()); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.9K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
} } private void removeExcessChannels(int excessCount) { List<ChannelInfo> channelsToRemove = channels.values() .stream() .filter(c -> !c.isPrimary()) // Never remove primary channel .sorted(Comparator.comparingInt(ChannelInfo::getScore)) // Remove lowest scoring first .limit(excessCount)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0)