Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 395 for transport (0.08 sec)

  1. src/main/java/jcifs/smb1/smb1/SmbComSessionSetupAndX.java

            super(andx);
            command = SMB_COM_SESSION_SETUP_ANDX;
            this.session = session;
            this.cred = cred;
    
            sessionKey = session.transport.sessionKey;
            capabilities = session.transport.capabilities;
    
            if (session.transport.server.security == SECURITY_USER) {
                if (cred instanceof final NtlmPasswordAuthentication auth) {
                    if (auth == NtlmPasswordAuthentication.ANONYMOUS) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbSessionImpl.java

        SmbSessionImpl(CIFSContext tf, String targetHost, String targetDomain, SmbTransportImpl transport) {
            this.transportContext = tf;
            this.targetDomain = targetDomain;
            this.targetHost = targetHost;
            this.transport = transport.acquire();
            this.trees = new CopyOnWriteArrayList<>();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

            assertNull(session.transport, "transport not created yet");
            SmbTransport tr = session.transport();
            assertNotNull(tr, "transport should now exist");
            // subsequent calls return the same instance
            assertSame(tr, session.transport());
        }
    
        @Test
        void sendResetsResponseAndForwards() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbTreeConnection.java

                if (isConnected()) {
                    try (SmbTransportImpl transport = session.getTransport()) {
                        if (transport.isDisconnected() || transport.getRemoteHostName() == null) {
                            /*
                             * Tree/session thinks it is connected but transport disconnected
                             * under it, reset tree to reflect the truth.
                             */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  5. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            assertTrue(session.isInUse(), "New session should be in use due to transport acquisition");
    
            // Test additional acquire
            session.acquire();
            assertTrue(session.isInUse(), "Session should still be in use after additional acquire");
    
            // Test release (still in use because of initial transport acquire)
            session.release();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

        @Mock
        private SmbTransport transport;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            // Setup transport fields that are accessed directly
            transport.tconHostName = "testHost";
            // Setup session.transport field (accessed directly in SmbTree)
            session.transport = transport;
            // Setup session to return transport via method call
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/util/transport/Response.java

    package jcifs.smb1.util.transport;
    
    /**
     * Abstract base class for transport layer response objects.
     * Represents a response that can be received through the SMB1 transport layer.
     */
    public abstract class Response {
    
        /**
         * Default constructor for Response.
         */
        public Response() {
            // Default constructor
        }
    
        /**
         * The expiration time for this response in milliseconds.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 557 bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

        }
    
        /**
         * Get channel for specific transport
         *
         * @param transport transport instance
         * @return corresponding channel or null
         */
        public ChannelInfo getChannelForTransport(SmbTransport transport) {
            return channels.values().stream().filter(c -> c.getTransport() == transport).findFirst().orElse(null);
        }
    
        /**
         * Remove a channel
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            verify(transport, times(4)).close();
        }
    
        @Test
        @DisplayName("isSMB2 true and exception fallback to false")
        void isSMB2Cases() throws Exception {
            // Happy path returns true; transport exception path returns false
            when(transport.isSMB2()).thenReturn(true);
            assertTrue(handle.isSMB2());
    
            reset(transport);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

                // Check if transport creation failed
                if (newTransport == null) {
                    throw new IOException("Failed to create new transport");
                }
    
                // Reconnect
                channel.setState(ChannelState.CONNECTING);
                // Connection would be ensured through proper transport interface
    
                // Re-establish channel binding
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
Back to top