Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for getInetAddress (0.09 sec)

  1. src/test/java/jcifs/ConfigTest.java

            InetAddress localhost = InetAddress.getByName("localhost");
            InetAddress defaultAddress = InetAddress.getByName("127.0.0.1");
            assertEquals(localhost, Config.getInetAddress(testProperties, "test.host", null));
            assertEquals(defaultAddress, Config.getInetAddress(testProperties, "nonexistent.host", defaultAddress));
        }
    
        @Test
        @DisplayName("Should get boolean property with default value")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  2. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/TunnelingUnixSocket.java

        this.inetSocketAddress = (InetSocketAddress) endpoint;
        super.connect(new UnixSocketAddress(path), timeout);
      }
    
      @Override public InetAddress getInetAddress() {
        return inetSocketAddress.getAddress();
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Feb 12 16:33:52 UTC 2019
    - 1.9K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

        private val remotePort: Int = 1234,
      ) : Socket() {
        override fun getInputStream() = Buffer().inputStream()
    
        override fun getOutputStream() = Buffer().outputStream()
    
        override fun getInetAddress() = remoteAddress
    
        override fun getLocalAddress() = localAddress
    
        override fun getLocalPort() = localPort
    
        override fun getPort() = remotePort
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 02 20:36:00 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSocket.kt

      override fun setSSLParameters(p: SSLParameters) {
        delegate!!.sslParameters = p
      }
    
      @Throws(IOException::class)
      override fun close() {
        delegate!!.close()
      }
    
      override fun getInetAddress(): InetAddress = delegate!!.inetAddress
    
      @Throws(IOException::class)
      override fun getInputStream(): InputStream = delegate!!.inputStream
    
      @Throws(SocketException::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NbtSocket.java

         */
        public NbtSocket(final NbtAddress address, final String calledName, final int port, final InetAddress localAddr, final int localPort)
                throws IOException {
            super(address.getInetAddress(), port == 0 ? SSN_SRVC_PORT : port, localAddr, localPort);
            this.address = address;
            if (calledName == null) {
                this.calledName = address.hostName;
            } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/NetbiosAddress.java

     * a member of the group(a.k.a workgroup and domain) <code>BILLING-NY</code>. To
     * obtain an {@link java.net.InetAddress} for a host one might do:
     *
     * <pre>
     *
     * InetAddress addr = NbtAddress.getByName("jmorris2").getInetAddress();
     * </pre>
     *
     *  * From a UNIX platform with Samba installed you can perform similar
     * diagnostics using the <code>nmblookup</code> utility.
     *
     * @author Michael B. Allen
     * @see java.net.InetAddress
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/Config.java

         * @param def the default value to return if key is not found or cannot be resolved
         * @return the InetAddress for the property or the default value
         */
        public static InetAddress getInetAddress(final Properties props, final String key, InetAddress def) {
            final String addr = props.getProperty(key);
            if (addr != null) {
                try {
                    def = InetAddress.getByName(addr);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top