Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for setTransport (0.07 sec)

  1. docs/debugging/s3-verify/main.go

    	srcU, err := url.Parse(sourceEndpoint)
    	if err != nil {
    		log.Fatalln(err)
    	}
    
    	ssecure := strings.EqualFold(srcU.Scheme, "https")
    	stransport, err := minio.DefaultTransport(ssecure)
    	if err != nil {
    		log.Fatalln(err)
    	}
    	if insecure {
    		// skip TLS verification
    		stransport.TLSClientConfig.InsecureSkipVerify = true
    	}
    
    	ageDelta, err := time.ParseDuration(minimumObjectAge)
    	if err != nil {
    		log.Fatalln(err)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Jun 22 15:12:47 UTC 2022
    - 8.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbSessionImpl.java

                    ChannelInfo channel = channelManager.selectChannel(message);
                    return (SmbTransportImpl) channel.getTransport();
                } catch (Exception e) {
                    log.debug("Multi-channel selection failed, using primary transport", e);
                }
            }
            return getTransport();
        }
    
        @Override
        public String toString() {
    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/main/java/jcifs/smb/SmbSessionInternal.java

         */
        byte[] getSessionKey() throws CIFSException;
    
        /**
         * Returns the SMB transport associated with this session.
         *
         * @return the transport for this session
         */
        SmbTransport getTransport();
    
        /**
         * Connect to the logon share
         *
         * @throws SmbException if the connection fails
         */
        void treeConnectLogon() throws SmbException;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbTreeHandleImplTest.java

            when(treeConnection.acquire()).thenReturn(treeConnection);
            when(treeConnection.getSession()).thenReturn(session);
            when(session.getTransport()).thenReturn(transport);
            handle = new SmbTreeHandleImpl(resourceLoc, treeConnection);
        }
    
        @Test
        @DisplayName("Constructor acquires tree connection; getConfig/isConnected delegate")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

        }
    
        @Test
        void testConstructor() {
            assertEquals("test-channel", channelInfo.getChannelId());
            assertEquals(mockTransport, channelInfo.getTransport());
            assertEquals(localInterface, channelInfo.getLocalInterface());
            assertEquals(remoteInterface, channelInfo.getRemoteInterface());
            assertEquals(ChannelState.DISCONNECTED, channelInfo.getState());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            channel.setState(ChannelState.ESTABLISHED);
    
            // Verify channel properties
            assertEquals("test-channel", channel.getChannelId());
            assertEquals(mockTransport, channel.getTransport());
            assertEquals(localNic, channel.getLocalInterface());
            assertEquals(remoteNic, channel.getRemoteInterface());
            assertEquals(ChannelState.ESTABLISHED, channel.getState());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTreeImplTest.java

        void setUp() throws Exception {
            MockitoAnnotations.openMocks(this);
            when(session.getConfig()).thenReturn(config);
            when(session.getContext()).thenReturn(context);
            when(session.getTransport()).thenReturn(transport);
            when(session.acquire()).thenReturn(session);
            when(config.isTraceResourceUsage()).thenReturn(false);
            when(context.getConfig()).thenReturn(config);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbEnumerationUtil.java

            try (SmbTreeHandleImpl th = treeConn.connectHost(locator, locator.getServerWithDfs());
                    SmbSessionImpl session = th.getSession();
                    SmbTransportImpl transport = session.getTransport()) {
                try {
                    entries = doMsrpcShareEnum(tc, locator, transport.getRemoteAddress());
                } catch (final IOException ioe) {
                    if (th.isSMB2()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            when(tree.isConnected()).thenReturn(true);
            when(tree.getSession()).thenReturn(session);
            when(tree.acquire(false)).thenReturn(tree);
            when(session.getTransport()).thenReturn(transport);
            when(transport.isDisconnected()).thenReturn(false);
            when(transport.getRemoteHostName()).thenReturn("host");
            setTree(c, tree);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
  10. docs/smb3-features/02-persistent-handles-design.md

        
        // Write some data
        try (OutputStream os = file.getOutputStream()) {
            os.write("test data".getBytes());
        }
        
        // Simulate network disconnection
        file.getTree().getSession().getTransport().disconnect();
        
        // Try to read - should trigger reconnection
        try (InputStream is = file.getInputStream()) {
            byte[] buffer = new byte[9];
            is.read(buffer);
    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