Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for doConnect (0.03 sec)

  1. src/main/java/jcifs/smb1/util/transport/Transport.java

                    thread.wait(timeout); /* wait for doConnect */
    
                    switch (state) {
                    case 1: /* doConnect never returned */
                        state = 0;
                        thread = null;
                        throw new TransportException("Connection timeout");
                    case 2:
                        if (te != null) { /* doConnect throw Exception */
                            state = 4; /* error */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/transport/Transport.java

                    t.wait(timeout); /* wait for doConnect */
    
                    st = this.state;
                    switch (st) {
                    case 1: /* doConnect never returned */
                        this.state = 6;
                        throw new ConnectionTimeoutException("Connection timeout");
                    case 2:
                        if (this.te != null) { /* doConnect throw Exception */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 27.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/transport/TransportTest.java

            }
    
            @Override
            protected int getResponseTimeout(Request request) {
                return 1000;
            }
    
            @Override
            protected void doConnect() throws Exception {
                if (connectFails) {
                    throw new IOException("Connect failed");
                }
            }
    
            @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. docs/smb3-features/04-directory-leasing-design.md

            }
        }
    }
    
    @Override
    protected void doConnect() throws IOException {
        // Request directory lease for directories
        if (isDirectory()) {
            requestDirectoryLease();
        }
        
        // Continue with normal connection logic
        super.doConnect();
    }
    
    @Override
    public void close() throws IOException {
        try {
            super.close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbTransport.java

        }
    
        private void negotiate(int port, final ServerMessageBlock resp) throws IOException {
            /* We cannot use Transport.sendrecv() yet because
             * the Transport thread is not setup until doConnect()
             * returns and we want to supress all communication
             * until we have properly negotiated.
             */
            synchronized (sbuf) {
                if (port == 139) {
                    ssn139();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeConnection.java

            }
    
            if (referral != null) {
                t.markDomainDfs();
            }
    
            try {
                if (log.isTraceEnabled()) {
                    log.trace("doConnect: " + addr);
                }
                t.treeConnect(null, null);
                return t.acquire();
            } catch (final SmbAuthException sae) {
                log.debug("Authentication failed", sae);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  7. docs/smb3-features/01-smb3-lease-design.md

    }
    ```
    
    ### 6.2 Modifying SmbFile
    ```java
    // In SmbFile.java
    private Smb2LeaseKey leaseKey;
    private int leaseState;
    private LeaseManager leaseManager;
    
    protected void doConnect() throws IOException {
        // ... existing connection logic ...
        
        if (context.getConfig().isUseLeases() && tree.getSession().supports(SMB3_0)) {
            // Request lease when opening file
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 22K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTransportImpl.java

        }
    
        private SmbNegotiation negotiate(int prt) throws IOException {
            /*
             * We cannot use Transport.sendrecv() yet because
             * the Transport thread is not setup until doConnect()
             * returns and we want to suppress all communication
             * until we have properly negotiated.
             */
            synchronized (this.inLock) {
                if (prt == 139) {
                    ssn139();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbFile.java

            } catch (final SmbException se) {
                throw se;
            } catch (final IOException ioe) {
                throw new SmbException("Failed to connect to server", ioe);
            }
        }
    
        void doConnect() throws IOException {
            SmbTransport trans;
            UniAddress addr = getAddress();
    
            if (tree != null) {
                trans = tree.session.transport;
            } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  10. docs/smb3-features/02-persistent-handles-design.md

    ```java
    // In SmbFile.java
    private PersistentHandleManager handleManager;
    private HandleGuid handleGuid;
    private HandleType handleType;
    private boolean durableHandleRequested;
    
    protected void doConnect() throws IOException {
        // Check for existing durable handle
        handleManager = tree.getSession().getHandleManager();
        HandleInfo existingHandle = handleManager.getHandleForReconnect(getPath());
        
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 31.6K bytes
    - Viewed (0)
Back to top