Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for InetAddress (0.04 sec)

  1. src/test/java/jcifs/smb/MultiChannelManagerBasicTest.java

            InetAddress localhost = InetAddress.getLocalHost();
            InetAddress loopback = InetAddress.getLoopbackAddress();
    
            // Use reflection to access private method for testing
            java.lang.reflect.Method method =
                    MultiChannelManager.class.getDeclaredMethod("createChannelTransport", InetAddress.class, InetAddress.class);
            method.setAccessible(true);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

        }
    
        @Test
        void testChannelInfoCreation() throws Exception {
            // Test ChannelInfo creation
            InetAddress localAddr = InetAddress.getByName("192.168.1.10");
            InetAddress remoteAddr = InetAddress.getByName("192.168.1.100");
    
            NetworkInterfaceInfo localNic = new NetworkInterfaceInfo(localAddr, 1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/multichannel/ChannelManagerTest.java

        @Test
        void testGetHealthyChannels() throws UnknownHostException {
            assertTrue(channelManager.getHealthyChannels().isEmpty());
    
            // Add a healthy channel manually for testing
            InetAddress addr = InetAddress.getByName("192.168.1.100");
            NetworkInterfaceInfo localInterface = new NetworkInterfaceInfo(addr, 1000);
            NetworkInterfaceInfo remoteInterface = new NetworkInterfaceInfo(addr, 1000);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/witness/WitnessNotificationTest.java

            assertEquals(WitnessNotification.WITNESS_RESOURCE_STATE_UNKNOWN, notification.getFlags());
        }
    
        @Test
        void testAddIPAddresses() throws Exception {
            InetAddress ipv4 = InetAddress.getByName("192.168.1.100");
            InetAddress ipv6 = InetAddress.getByName("2001:db8::1");
    
            notification.addNewIPAddress(ipv4);
            notification.addNewIPAddress(ipv6);
            notification.addOldIPAddress(ipv4);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/NetworkInterfaceInfoTest.java

     */
    @ExtendWith(MockitoExtension.class)
    class NetworkInterfaceInfoTest {
    
        private InetAddress testAddress;
        private InetAddress loopbackAddress;
    
        @BeforeEach
        void setUp() throws UnknownHostException {
            testAddress = InetAddress.getByName("192.168.1.100");
            loopbackAddress = InetAddress.getLoopbackAddress();
        }
    
        @Test
        void testConstructor() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  6. src/main/java/jcifs/netbios/NameServiceClientImpl.java

            /*
             * Determine the InetAddress of the local interface
             * if one was not specified.
             */
            InetAddress localInetAddress = tc.getConfig().getNetbiosLocalAddress();
            if (localInetAddress == null) {
                try {
                    localInetAddress = InetAddress.getLocalHost();
                } catch (final UnknownHostException uhe) {
                    /*
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

        private NetworkInterfaceInfo remoteInterface;
        private ChannelInfo channelInfo;
    
        @BeforeEach
        void setUp() throws UnknownHostException {
            InetAddress localAddr = InetAddress.getByName("192.168.1.100");
            InetAddress remoteAddr = InetAddress.getByName("192.168.1.200");
    
            localInterface = new NetworkInterfaceInfo(localAddr, 1000);
            remoteInterface = new NetworkInterfaceInfo(remoteAddr, 1000);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessNotification.java

             * @param address the IP address
             */
            public WitnessIPAddress(InetAddress address) {
                this.address = address;
                this.flags = address.getAddress().length == 4 ? IPV4 : IPV6;
            }
    
            /**
             * Gets the IP address.
             *
             * @return the IP address
             */
            public InetAddress getAddress() {
                return address;
            }
    
            /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/witness/WitnessClientTest.java

        private Configuration mockConfig;
    
        @Mock
        private WitnessRpcClient mockRpcClient;
    
        private InetAddress witnessServer;
        private InetAddress serverAddress;
    
        @BeforeEach
        void setUp() throws Exception {
            witnessServer = InetAddress.getByName("192.168.1.200");
            serverAddress = InetAddress.getByName("192.168.1.100");
    
            // Setup mock configuration with lenient stubbing
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/MultiChannelManager.java

                return Collections.emptyList();
            }
        }
    
        private InetAddress getLocalAddressForInterface(NetworkInterface netInterface) {
            return netInterface.getInetAddresses().nextElement();
        }
    
        private SmbTransportImpl createChannelTransport(InetAddress localAddress, InetAddress serverAddress) throws CIFSException {
            try {
                // Create Address wrapper for server address
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top