Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getSmbTransport (0.13 sec)

  1. src/test/java/jcifs/SmbTransportPoolTest.java

                when(transportPool.getSmbTransport(context, address, DEFAULT_PORT, false)).thenReturn(transport);
    
                // When
                SmbTransport result = transportPool.getSmbTransport(context, address, DEFAULT_PORT, false);
    
                // Then
                assertNotNull(result);
                assertEquals(transport, result);
                verify(transportPool).getSmbTransport(context, address, DEFAULT_PORT, false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Return mocked transports
            doReturn(trans1).when(poolSpy).getSmbTransport(eq(ctx), eq(addr1), anyInt(), anyBoolean(), anyBoolean());
            doReturn(trans2).when(poolSpy).getSmbTransport(eq(ctx), eq(addr2), anyInt(), anyBoolean(), anyBoolean());
    
            // When: Get transport by name
            SmbTransportImpl result = poolSpy.getSmbTransport(ctx, "test.server", 445, false, false);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

            transport.server = serverData;
    
            smbtStatic = mockStatic(SmbTransport.class);
            smbtStatic.when(() -> SmbTransport.getSmbTransport(addr, 445, inet, 0, null)).thenReturn(transport);
            smbtStatic.when(() -> SmbTransport.getSmbTransport(addr, 445)).thenReturn(transport);
        }
    
        @AfterEach
        void tearDown() {
            if (smbtStatic != null) {
                smbtStatic.close();
            }
    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/SmbTransportPoolImpl.java

        @Override
        public SmbTransportImpl getSmbTransport(final CIFSContext tc, final Address address, final int port, final boolean nonPooled) {
            return getSmbTransport(tc, address, port, tc.getConfig().getLocalAddr(), tc.getConfig().getLocalPort(), null, nonPooled);
        }
    
        @Override
        public SmbTransportImpl getSmbTransport(final CIFSContext tc, final Address address, final int port, final boolean nonPooled,
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/SmbTransportPool.java

         * @return a connected transport
         * @throws UnknownHostException if the host cannot be resolved
         * @throws IOException if an I/O error occurs
         */
        SmbTransport getSmbTransport(CIFSContext tf, String name, int port, boolean exclusive, boolean forceSigning)
                throws UnknownHostException, IOException;
    
        /**
         * Get transport connection
         *
         * @param tc
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/smb1/Dfs.java

            if (_domains != null) {
                return _domains.map;
            }
            try {
                final UniAddress addr = UniAddress.getByName(auth.domain, true);
                final SmbTransport trans = SmbTransport.getSmbTransport(addr, 0);
                final CacheEntry entry = new CacheEntry(Dfs.TTL * 10L);
    
                DfsReferral dr = trans.getDfsReferrals(auth, "", 0);
                if (dr != null) {
                    final DfsReferral start = dr;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SmbSession.java

        static int dc_list_counter;
    
        private static NtlmChallenge interrogate(final NbtAddress addr) throws SmbException {
            final UniAddress dc = new UniAddress(addr);
            final SmbTransport trans = SmbTransport.getSmbTransport(dc, 0);
            if (USERNAME == null) {
                trans.connect();
                if (LogStream.level >= 3) {
                    SmbTransport.log.println("""
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/SmbTransport.java

        static LogStream log = LogStream.getInstance();
        static HashMap dfsRoots = null;
    
        static synchronized SmbTransport getSmbTransport(final UniAddress address, final int port) {
            return getSmbTransport(address, port, LADDR, LPORT, null);
        }
    
        static synchronized SmbTransport getSmbTransport(final UniAddress address, final int port, final InetAddress localAddr,
                final int localPort, final String hostName) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/DfsTest.java

        }
    
        @Test
        void testGetDc_Success() throws IOException, SmbAuthException {
            lenient().when(UniAddress.getByName("domain.com", true)).thenReturn(uniAddress);
            lenient().when(SmbTransport.getSmbTransport(uniAddress, 0)).thenReturn(smbTransport);
    
            DfsReferral referral = new DfsReferral();
            referral.server = "dc1.domain.com";
            referral.next = referral;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/DfsResolverTest.java

            when(mockConfig.isDfsDisabled()).thenReturn(false);
            when(mockContext.getTransportPool()).thenReturn(mockTransportPool);
            when(mockTransportPool.getSmbTransport(any(), anyString(), anyInt(), anyBoolean(), anyBoolean())).thenReturn(mockTransport);
            when(mockTransport.unwrap(any())).thenReturn(mockTransport);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top