Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 145 for InetAddress (0.11 sec)

  1. 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)
  2. src/main/java/jcifs/netbios/UniAddress.java

                return ((NbtAddress) this.addr).getHostAddress();
            }
            return ((InetAddress) this.addr).getHostAddress();
        }
    
        /**
         * {@inheritDoc}
         *
         * @throws UnknownHostException if the host cannot be resolved
         *
         * @see jcifs.Address#toInetAddress()
         */
        @Override
        public InetAddress toInetAddress() throws UnknownHostException {
            if (this.addr instanceof Address) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Dns.kt

       * either a connection is made, the set of IP addresses is exhausted, or a limit is exceeded.
       */
      @Throws(UnknownHostException::class)
      fun lookup(hostname: String): List<InetAddress>
    
      companion object {
        /**
         * A DNS that uses [InetAddress.getAllByName] to ask the underlying operating system to
         * lookup IP addresses. Most custom [Dns] implementations should delegate to this instance.
         */
        @JvmField
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Dec 27 13:39:56 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocketFactory.kt

      override fun createSocket(
        host: String,
        port: Int,
        localAddress: InetAddress,
        localPort: Int,
      ): SSLSocket {
        val sslSocket = delegate.createSocket(host, port, localAddress, localPort) as SSLSocket
        return configureSocket(sslSocket)
      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: InetAddress,
        port: Int,
      ): SSLSocket {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSocketFactory.kt

      override fun createSocket(
        host: String,
        port: Int,
        localAddress: InetAddress,
        localPort: Int,
      ): Socket {
        val socket = delegate.createSocket(host, port, localAddress, localPort)
        return configureSocket(socket)
      }
    
      @Throws(IOException::class)
      override fun createSocket(
        host: InetAddress,
        port: Int,
      ): Socket {
        val socket = delegate.createSocket(host, port)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.1K bytes
    - Viewed (0)
Back to top