Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 120 for port (0.14 sec)

  1. android/guava/src/com/google/common/net/HostAndPort.java

       * @param port a port number from [0..65535]
       * @return if parsing was successful, a populated HostAndPort object.
       * @throws IllegalArgumentException if {@code host} contains a port number, or {@code port} is out
       *     of range.
       */
      public static HostAndPort fromParts(String host, int port) {
        checkArgument(isValidPort(port), "Port out of range: %s", port);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Aug 22 20:55:57 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/HostAndPortTest.java

      }
    
      public void testFromStringBadPort() {
        // Out-of-range ports.
        checkFromStringCase("google.com:65536", 1, null, 99, false);
        checkFromStringCase("google.com:9999999999", 1, null, 99, false);
        // Invalid port parts.
        checkFromStringCase("google.com:port", 1, null, 99, false);
        checkFromStringCase("google.com:-25", 1, null, 99, false);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 10K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/net/HostAndPortTest.java

      }
    
      public void testFromStringBadPort() {
        // Out-of-range ports.
        checkFromStringCase("google.com:65536", 1, null, 99, false);
        checkFromStringCase("google.com:9999999999", 1, null, 99, false);
        // Invalid port parts.
        checkFromStringCase("google.com:port", 1, null, 99, false);
        checkFromStringCase("google.com:-25", 1, null, 99, false);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/net/InetAddresses.java

         */
        // TODO: why is this public?
        public TeredoInfo(
            @CheckForNull Inet4Address server, @CheckForNull Inet4Address client, int port, int flags) {
          checkArgument(
              (port >= 0) && (port <= 0xffff), "port '%s' is out of range (0 <= port <= 0xffff)", port);
          checkArgument(
              (flags >= 0) && (flags <= 0xffff),
              "flags '%s' is out of range (0 <= flags <= 0xffff)",
              flags);
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  5. android/guava/src/com/google/common/net/HttpHeaders.java

       */
      public static final String X_FORWARDED_HOST = "X-Forwarded-Host";
      /**
       * The HTTP <a href="http://goo.gl/YtV2at">{@code X-Forwarded-Port}</a> header field name.
       *
       * @since 20.0
       */
      public static final String X_FORWARDED_PORT = "X-Forwarded-Port";
      /** The HTTP {@code X-Frame-Options} header field name. */
      public static final String X_FRAME_OPTIONS = "X-Frame-Options";
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

      private static long fingerprint(byte[] bytes, int length) {
        return HASH_FN.hashBytes(bytes, 0, length).asLong();
      }
    
      /**
       * Tests that the Java port of FarmHashFingerprint64 provides the same results on buffers up to
       * 800 bytes long as the C++ reference implementation.
       */
      public void testMultipleLengths() {
        int iterations = 800;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 15:56:47 GMT 2017
    - 6.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/HostSpecifier.java

       *       2001:db8::1}
       * </ul>
       *
       * @throws IllegalArgumentException if the specifier is not valid.
       */
      public static HostSpecifier fromValid(String specifier) {
        // Verify that no port was specified, and strip optional brackets from
        // IPv6 literals.
        HostAndPort parsedHost = HostAndPort.fromString(specifier);
        Preconditions.checkArgument(!parsedHost.hasPort());
        String host = parsedHost.getHost();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 05 09:18:40 GMT 2023
    - 6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

      private static long fingerprint(byte[] bytes, int length) {
        return HASH_FN.hashBytes(bytes, 0, length).asLong();
      }
    
      /**
       * Tests that the Java port of FarmHashFingerprint64 provides the same results on buffers up to
       * 800 bytes long as the C++ reference implementation.
       */
      public void testMultipleLengths() {
        int iterations = 800;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jul 19 14:00:24 GMT 2016
    - 6.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

      private static long fingerprint(byte[] bytes, int length) {
        return HASH_FN.hashBytes(bytes, 0, length).asLong();
      }
    
      /**
       * Tests that the Java port of Fingerprint2011 provides the same results on buffers up to 800
       * bytes long as the original implementation in C++. See http://cl/106539598
       */
      public void testMultipleLengths() {
        int iterations = 800;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Dec 29 14:55:25 GMT 2021
    - 7.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/hash/Fingerprint2011Test.java

      private static long fingerprint(byte[] bytes, int length) {
        return HASH_FN.hashBytes(bytes, 0, length).asLong();
      }
    
      /**
       * Tests that the Java port of Fingerprint2011 provides the same results on buffers up to 800
       * bytes long as the original implementation in C++. See http://cl/106539598
       */
      public void testMultipleLengths() {
        int iterations = 800;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 29 14:55:25 GMT 2021
    - 7.6K bytes
    - Viewed (0)
Back to top