Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 145 for InetAddress (0.05 sec)

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

            Name mockName = new Name(mockConfig, "TEST", 0x20, null);
            mockQueryAddress.hostName = mockName;
            // Convert IP address to int representation for NbtAddress
            InetAddress inetAddr = InetAddress.getByName("192.168.1.100");
            byte[] addrBytes = inetAddr.getAddress();
            mockQueryAddress.address =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CookiesTest.kt

    import assertk.assertions.isTrue
    import assertk.fail
    import java.net.CookieHandler
    import java.net.CookieManager
    import java.net.CookiePolicy
    import java.net.HttpCookie
    import java.net.HttpURLConnection
    import java.net.InetAddress
    import java.net.URI
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import mockwebserver3.junit5.StartStop
    import okhttp3.Cookie.Companion.parse
    import okhttp3.HttpUrl.Companion.toHttpUrl
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 13K bytes
    - Viewed (0)
  3. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        }
      }
    
      @Test
      fun startIsIdempotentIfAddressIsConsistent() {
        val other = MockWebServer()
        val addressA = InetAddress.getByAddress("localhost", byteArrayOf(127, 0, 0, 1))
        val addressB = InetAddress.getByAddress("localhost", byteArrayOf(127, 0, 0, 2))
        other.use {
          other.start(addressA, 0)
    
          // Same address is okay.
          other.start(addressA, 0)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Aug 03 22:38:00 UTC 2025
    - 28K bytes
    - Viewed (0)
  4. mockwebserver/src/test/java/mockwebserver3/internal/http2/Http2Server.kt

            socket?.closeQuietly()
          }
        }
      }
    
      private fun doSsl(socket: Socket): SSLSocket {
        val sslSocket =
          sslSocketFactory.createSocket(
            socket,
            socket.inetAddress.hostAddress,
            socket.port,
            true,
          ) as SSLSocket
        sslSocket.useClientMode = false
        Platform.get().configureTlsExtensions(sslSocket, null, listOf(Protocol.HTTP_2))
        sslSocket.startHandshake()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.tls
    
    import java.math.BigInteger
    import java.net.InetAddress
    import java.security.GeneralSecurityException
    import java.security.KeyFactory
    import java.security.KeyPair
    import java.security.KeyPairGenerator
    import java.security.PrivateKey
    import java.security.PublicKey
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 21.6K bytes
    - Viewed (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/EventListener.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import java.io.IOException
    import java.net.InetAddress
    import java.net.InetSocketAddress
    import java.net.ProtocolException
    import java.net.Proxy
    
    /**
     * Listener for metrics events. Extend this class to monitor the quantity, size, and duration of
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:58:02 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbTransportPoolTest.java

    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.times;
    import static org.mockito.Mockito.verify;
    import static org.mockito.Mockito.when;
    
    import java.io.IOException;
    import java.net.InetAddress;
    import java.net.UnknownHostException;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Nested;
    import org.junit.jupiter.api.Test;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  8. okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt

     * limitations under the License.
     */
    package okhttp3
    
    import java.io.File
    import java.io.IOException
    import java.math.BigInteger
    import java.net.CookieHandler
    import java.net.InetAddress
    import java.net.InetSocketAddress
    import java.net.Proxy
    import java.net.ProxySelector
    import java.net.Socket
    import java.net.URI
    import java.net.URL
    import java.nio.charset.Charset
    import java.security.KeyPair
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jun 21 20:36:35 UTC 2025
    - 46.5K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbResourceLocatorImpl.java

                        if (address != null && address.length() > 0) {
                            final byte[] ip = java.net.InetAddress.getByName(address).getAddress();
                            this.addresses = new UniAddress[1];
                            this.addresses[0] = new UniAddress(java.net.InetAddress.getByAddress(host, ip));
                        }
                    } else if (host.length() == 0) {
                        try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  10. docs/features/events.md

        printEvent("callEnd");
      }
    
      @Override public void dnsStart(Call call, String domainName) {
        printEvent("dnsStart");
      }
    
      @Override public void dnsEnd(Call call, String domainName, List<InetAddress> inetAddressList) {
        printEvent("dnsEnd");
      }
    
      ...
    }
    ```
    
    We make a couple calls:
    
    ```java
    Request request = new Request.Builder()
        .url("https://publicobject.com/helloworld.txt")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 02:19:09 UTC 2022
    - 7.7K bytes
    - Viewed (0)
Back to top