Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getLocalInterface (0.57 sec)

  1. src/main/java/jcifs/internal/smb2/multichannel/ChannelFailover.java

            // If createTransport returns null (no mock setup), remove immediately
            try {
                SmbTransport testTransport = manager.createTransport(failedChannel.getLocalInterface(), failedChannel.getRemoteInterface());
                if (testTransport == null) {
                    // No recovery possible, remove synchronously
                    removeChannel(failedChannel);
                    return;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/multichannel/ChannelInfo.java

            this.transport = transport;
        }
    
        /**
         * Get local network interface
         *
         * @return local interface info
         */
        public NetworkInterfaceInfo getLocalInterface() {
            return localInterface;
        }
    
        /**
         * Get remote network interface
         *
         * @return remote interface info
         */
        public NetworkInterfaceInfo getRemoteInterface() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelFailoverTest.java

            failover.handleFailure(failedChannel, error);
    
            // Wait a bit for recovery attempt
            Thread.sleep(100);
    
            verify(mockChannelManager).createTransport(failedChannel.getLocalInterface(), failedChannel.getRemoteInterface());
        }
    
        @Test
        void testMultipleFailuresExceedRetryLimit() {
            IOException error = new IOException("Connection failed");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. docs/smb3-features/03-multi-channel-design.md

            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            
            try {
                baos.write(session.getSessionKey());
                baos.write(channel.getLocalInterface().getAddress().getAddress());
                baos.write(channel.getRemoteInterface().getAddress().getAddress());
                baos.write(ByteBuffer.allocate(8).putLong(System.currentTimeMillis()).array());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K 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());
            assertFalse(channelInfo.isPrimary());
    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

            // 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());
            assertTrue(channel.isHealthy());
    
            // Test metrics
    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/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

                byte[] sessionKey = getSessionKey();
                if (sessionKey != null) {
                    baos.write(sessionKey);
                }
                baos.write(channel.getLocalInterface().getAddress().getAddress());
                baos.write(channel.getRemoteInterface().getAddress().getAddress());
                baos.write(ByteBuffer.allocate(8).putLong(System.currentTimeMillis()).array());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
Back to top