Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 139 for connect0 (0.06 sec)

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

        boolean hasNextAddress() {
            return addressIndex < addresses.length;
        }
    
        void connect0() throws SmbException {
            try {
                connect();
            } catch (final SmbException se) {
                throw se;
            } catch (final IOException ioe) {
                throw new SmbException("Failed to connect to server", ioe);
            }
        }
    
        void doConnect() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 112.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbFileTest.java

                SmbFile share = new SmbFile("smb1://server/share/");
                // To test this properly, we would need to mock connect0() and the tree object.
                // This is a limitation of unit testing such a coupled class.
                // We expect an SmbException because it will try to connect.
                assertThrows(SmbException.class, () -> share.getType());
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

            if (file.type != SmbFile.TYPE_NAMED_PIPE) {
                file.open(openFlags, access, SmbFile.ATTR_NORMAL, 0);
                this.openFlags &= ~(SmbFile.O_CREAT | SmbFile.O_TRUNC);
            } else {
                file.connect0();
            }
            readSize = Math.min(file.tree.session.transport.rcv_buf_size - 70, file.tree.session.transport.server.maxBufferSize - 70);
        }
    
        /**
         * Converts an SmbException to an IOException.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

        void testTreeConnectAndDisconnect() throws Exception {
            SmbTree tree = new SmbTree(session, "testShare", "testService");
    
            // Mock transport.connect() to succeed
            doNothing().when(transport).connect();
    
            // Setup response for tree connect
            doAnswer(invocation -> {
                ServerMessageBlock request = invocation.getArgument(0);
                ServerMessageBlock response = invocation.getArgument(1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

            return sb.toString();
        }
    
        /**
         * Checks if the client is connected to the witness service.
         *
         * @return true if connected
         */
        public boolean isConnected() {
            return connected && rpcHandle != null;
        }
    
        @Override
        public void close() {
            if (connected && rpcHandle != null) {
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/TreeConnectResponse.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.internal;
    
    /**
     * Interface for SMB Tree Connect response messages.
     * Handles the server's response to a tree connect request, providing tree ID,
     * service type, and DFS information for the connected share.
     *
     * @author mbechler
     */
    public interface TreeConnectResponse extends CommonServerMessageBlockResponse {
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/Network.java

      Graph<N> asGraph();
    
      //
      // Network properties
      //
    
      /**
       * Returns true if the edges in this network are directed. Directed edges connect a {@link
       * EndpointPair#source() source node} to a {@link EndpointPair#target() target node}, while
       * undirected edges connect a pair of nodes to each other.
       */
      boolean isDirected();
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:03:02 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java

    import jcifs.internal.smb2.ServerMessageBlock2;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Tree Connect response message.
     *
     * This response contains information about the connected
     * tree, including share type and capabilities.
     *
     * @author mbechler
     */
    public class Smb2TreeConnectResponse extends ServerMessageBlock2Response implements TreeConnectResponse {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/util/transport/Transport.java

                if (n <= 0) {
                    break;
                }
                i += n;
            }
    
            return i;
        }
    
        /* state values
         * 0 - not connected
         * 1 - connecting
         * 2 - run connected
         * 3 - connected
         * 4 - error
         */
        int state = 0;
    
        String name = "Transport" + id++;
        Thread thread;
        TransportException te;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTreeImpl.java

                            return null;
                        }
                        // failure to connect
                        throw new SmbException("Tree disconnected while waiting for connection");
                    }
                    if (before == 2) {
                        // concurrently connected
                        return null;
                    }
    
                    if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
Back to top