- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 70 for isConnected (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
docs/smb3-features/06-witness-protocol-design.md
} }, 30, TimeUnit.SECONDS); } private boolean testWitnessService() { // Simple connectivity test return client != null && client.isConnected(); } private void reregisterNotifications() { // Re-register all previous registrations // Implementation would store registration details for recovery } } ```Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 02:53:50 GMT 2025 - 42K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFile.java
* */ synchronized SmbTreeHandleImpl ensureTreeConnected() throws CIFSException { // Optimization: Check connection validity more efficiently if (this.treeHandle != null && this.treeHandle.isConnected()) { // Connection is still valid - reuse it return this.treeHandle.acquire(); } // Clean up old handle if neededCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 103.2K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/TransportTest.java
class StateManagementTests { @Test @DisplayName("should correctly identify disconnected states") void shouldIdentifyDisconnectedStates() { // States: 0=not connected, 1=connecting, 2=run connected, 3=connected, // 4=error, 5=disconnecting, 6=disconnected/invalid int[] disconnectedStates = { 0, 4, 5, 6 }; int[] connectedStates = { 1, 2, 3 };Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.5K bytes - Click Count (0) -
src/main/java/jcifs/util/transport/Transport.java
* @throws IOException if an I/O error occurs */ protected abstract void doSkip(Long key) throws IOException; /** * Checks if the transport is disconnected. * * @return whether the transport is disconnected */ public boolean isDisconnected() { return this.state == 4 || this.state == 5 || this.state == 6 || this.state == 0; } /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 27.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java
assertEquals(ChannelState.DISCONNECTED, channelInfo.getState()); assertFalse(channelInfo.isPrimary()); assertEquals(0, channelInfo.getBytesSent()); assertEquals(0, channelInfo.getBytesReceived()); } @Test void testStateTransitions() { assertEquals(ChannelState.DISCONNECTED, channelInfo.getState()); assertFalse(channelInfo.isHealthy());
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 7.4K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbPipeInputStreamTest.java
@DisplayName("available() on SMB1 returns 0 and marks closed on disconnected statuses") void available_smb1_disconnectedStatuses(int status) throws Exception { // Verify SMB1 path: disconnected/server-closed statuses yield 0 and mark fd closed SmbPipeInputStream stream = newStreamWithInit(false);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbTransportInternal.java
* @throws SmbException if an error occurs checking capabilities */ boolean hasCapability(int cap) throws SmbException; /** * Checks if the transport has been disconnected. * * @return whether the transport has been disconnected */ boolean isDisconnected(); /** * Disconnects the transport from the remote server. * * @param hard if true, force immediate disconnectionCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelState.java
*/ package jcifs.internal.smb2.multichannel; /** * SMB3 Multi-Channel connection states */ public enum ChannelState { /** * Channel is not connected */ DISCONNECTED(0), /** * Connection establishment in progress */ CONNECTING(1), /** * Authentication in progress */ AUTHENTICATING(2), /**Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 21 11:13:46 GMT 2025 - 1.7K bytes - Click Count (0) -
internal/http/check_port_linux.go
"net" "syscall" "time" ) // CheckPortAvailability - check if given host and port is already in use. // Note: The check method tries to listen on given port and closes it. // It is possible to have a disconnected client in this tiny window of time. func CheckPortAvailability(host, port string, opts TCPOptions) (err error) { lc := &net.ListenConfig{ Control: func(network, address string, c syscall.RawConn) error {
Created: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Wed May 03 21:12:25 GMT 2023 - 1.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java
assertTrue( initialState == RdmaConnection.RdmaConnectionState.DISCONNECTED || initialState == RdmaConnection.RdmaConnectionState.CONNECTING, "Initial state should be DISCONNECTED or CONNECTING"); // Test connection properties // Note: Local address may be null for TCP fallback provider
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 05:11:12 GMT 2025 - 13.8K bytes - Click Count (0)