Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 145 for InetAddress (0.04 sec)

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

        }
    
        /**
         * Retrieve an <code>InetAddress</code>. If the address is not
         * an IP address and cannot be resolved <code>null</code> will
         * be returned.
         *
         * @param key the property key to look up
         * @param def the default InetAddress to return if the property is not found or cannot be resolved
         * @return the property value as an InetAddress, or the default value
         */
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/net/InetAddresses.java

       *
       * @param address the InetAddress to decrement
       * @return a new InetAddress that is one less than the passed in address
       * @throws IllegalArgumentException if InetAddress is at the beginning of its range
       * @since 18.0
       */
      public static InetAddress decrement(InetAddress address) {
        byte[] addr = address.getAddress();
        int i = addr.length - 1;
        while (i >= 0 && addr[i] == (byte) 0x00) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/SocksProxy.kt

              when {
                domainName.equals(HOSTNAME_THAT_ONLY_THE_PROXY_KNOWS, ignoreCase = true) -> {
                  InetAddress.getByName("localhost")
                }
                else -> InetAddress.getByName(domainName)
              }
            }
    
            else -> throw ProtocolException("unsupported address type: $addressType")
          }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 7.6K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ConfigTest.java

        }
    
        @Test
        @DisplayName("Should get InetAddress property with default value")
        void testGetInetAddressWithDefault() throws UnknownHostException {
            InetAddress localhost = InetAddress.getByName("localhost");
            InetAddress defaultAddress = InetAddress.getByName("127.0.0.1");
            assertEquals(localhost, Config.getInetAddress(testProperties, "test.host", null));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/net/InetAddresses.java

       *
       * @param address the InetAddress to decrement
       * @return a new InetAddress that is one less than the passed in address
       * @throws IllegalArgumentException if InetAddress is at the beginning of its range
       * @since 18.0
       */
      public static InetAddress decrement(InetAddress address) {
        byte[] addr = address.getAddress();
        int i = addr.length - 1;
        while (i >= 0 && addr[i] == (byte) 0x00) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  6. src/test/java/jcifs/AddressTest.java

        }
    
        @Test
        @DisplayName("toInetAddress should return valid InetAddress")
        void testToInetAddressContract() throws UnknownHostException {
            // Given
            InetAddress expectedInetAddress = InetAddress.getByName("127.0.0.1");
            when(mockAddress.toInetAddress()).thenReturn(expectedInetAddress);
    
            // When
            InetAddress inetAddress = mockAddress.toInetAddress();
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  7. 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)
  8. okhttp/src/jvmTest/kotlin/okhttp3/ChannelSocketFactory.kt

        host: String,
        port: Int,
        localHost: InetAddress,
        localPort: Int,
      ): Socket = TODO("Not yet implemented")
    
      override fun createSocket(
        host: InetAddress,
        port: Int,
      ): Socket = TODO("Not yet implemented")
    
      override fun createSocket(
        address: InetAddress,
        port: Int,
        localAddress: InetAddress,
        localPort: Int,
      ): Socket = TODO("Not yet implemented")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top