Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 71 for isConnected (0.05 sec)

  1. 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;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  2. 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());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  3. 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);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            verify(transport).hasCapability(42);
        }
    
        // Edge: disconnected status toggles
        @ParameterizedTest
        @DisplayName("isDisconnected reflects current mocked state")
        @ValueSource(booleans = { true, false })
        void isDisconnected_states(boolean disconnected) {
            when(transport.isDisconnected()).thenReturn(disconnected);
            assertEquals(disconnected, transport.isDisconnected());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  5. 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 disconnection
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  6. 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),
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  7. 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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectResponse.java

    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Tree Disconnect response message.
     *
     * This response confirms that the tree connection
     * has been successfully disconnected.
     *
     * @author mbechler
     */
    public class Smb2TreeDisconnectResponse extends ServerMessageBlock2Response {
    
        /**
         * Creates a new SMB2 tree disconnect response.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Note: Real SmbTransportImpl will report as disconnected without actual socket
            SmbTransportImpl second = testPool.getSmbTransport(ctx, address, 445, false);
    
            // Then: Will create new connection since real transport has no socket
            assertNotSame(first, second, "Should create new connection when first is disconnected");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

            assertThrows(SmbException.class, () -> tree.treeConnect(null, null));
            // After failure, state should be reset to disconnected
            assertEquals(0, tree.connectionState);
        }
    
        @Test
        void testSend() throws SmbException {
            SmbTree tree = new SmbTree(session, "testShare", "A:");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top