Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for InetAddress (0.05 sec)

  1. src/test/java/jcifs/netbios/UniAddressTest.java

                InetAddress inetAddress = InetAddress.getByName("127.0.0.1");
                UniAddress uniAddress = new UniAddress(inetAddress);
                assertEquals(uniAddress, uniAddress.unwrap(UniAddress.class));
            }
    
            @Test
            void shouldReturnNullWhenTypeIsNotAssignable() throws UnknownHostException {
                InetAddress inetAddress = InetAddress.getByName("127.0.0.1");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/UniAddress.java

        private static int[] resolveOrder;
        private static InetAddress baddr;
    
        private static LogStream log = LogStream.getInstance();
    
        static {
            final String ro = Config.getProperty("jcifs.smb1.resolveOrder");
            final InetAddress nbns = NbtAddress.getWINSAddress();
    
            try {
                baddr = Config.getInetAddress("jcifs.smb1.netbios.baddr", InetAddress.getByName("255.255.255.255"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  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. docs/smb3-features/06-witness-protocol-design.md

            public InetAddress getAddress() { return address; }
            public int getFlags() { return flags; }
            public boolean isIPv4() { return (flags & IPV4) != 0; }
            public boolean isIPv6() { return (flags & IPV6) != 0; }
        }
        
        public void addNewIPAddress(InetAddress address) {
            newIPAddresses.add(new WitnessIPAddress(address));
        }
        
        public void addOldIPAddress(InetAddress address) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  7. src/test/java/jcifs/config/DelegatingConfigurationTest.java

        void testNetworkAddressDelegation() throws UnknownHostException {
            // Given
            InetAddress localAddr = InetAddress.getByName("127.0.0.1");
            InetAddress broadcastAddr = InetAddress.getByName("192.168.1.255");
            InetAddress[] winsServers = { InetAddress.getByName("192.168.1.1") };
    
            when(mockDelegate.getLocalAddr()).thenReturn(localAddr);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. src/test/java/jcifs/NameServiceClientTest.java

        @Test
        void testGetNbtAllByName() throws UnknownHostException {
            // Arrange
            String host = "testHost";
            int type = 0x20;
            String scope = "testScope";
            InetAddress svr = mock(InetAddress.class);
            NetbiosAddress[] expectedAddresses = { mock(NetbiosAddress.class) };
            when(nameServiceClient.getNbtAllByName(host, type, scope, svr)).thenReturn(expectedAddresses);
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
Back to top