Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 835 for ip64 (0.04 sec)

  1. src/cmd/compile/internal/test/float_test.go

    func cvt11(a float32) int {
    	return int(a)
    }
    
    //go:noinline
    func cvt12(a float32) uint {
    	return uint(a)
    }
    
    //go:noinline
    func f2i64p(v float64) *int64 {
    	return ip64(int64(v / 0.1))
    }
    
    //go:noinline
    func ip64(v int64) *int64 {
    	return &v
    }
    
    func TestFloatConvert(t *testing.T) {
    	if got := cvt1(3.5); got != 3 {
    		t.Errorf("cvt1 got %d, wanted 3", got)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 05 17:54:15 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  2. src/net/iprawsock_test.go

    	{"ip", "::1", &IPAddr{IP: ParseIP("::1")}, nil},
    	{"ip6", "::1", &IPAddr{IP: ParseIP("::1")}, nil},
    	{"ip6:ipv6-icmp", "::1", &IPAddr{IP: ParseIP("::1")}, nil},
    	{"ip6:IPv6-ICMP", "::1", &IPAddr{IP: ParseIP("::1")}, nil},
    
    	{"ip", "::1%en0", &IPAddr{IP: ParseIP("::1"), Zone: "en0"}, nil},
    	{"ip6", "::1%911", &IPAddr{IP: ParseIP("::1"), Zone: "911"}, nil},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/net/platform_test.go

    		}
    	}
    
    	// Test functionality of IPv4 communication using AF_INET6
    	// sockets.
    	if !supportsIPv4map() && supportsIPv4() && (network == "tcp" || network == "udp" || network == "ip") && wildcard {
    		// At this point, we prefer IPv4 when ip is nil.
    		// See favoriteAddrFamily for further information.
    		if ip.To16() != nil && ip.To4() == nil && cip.To4() != nil { // a pair of IPv6 server and IPv4 client
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. src/net/ipsock_posix.go

    	"syscall"
    	_ "unsafe" // for linkname
    )
    
    // probe probes IPv4, IPv6 and IPv4-mapped IPv6 communication
    // capabilities which are controlled by the IPV6_V6ONLY socket option
    // and kernel configuration.
    //
    // Should we try to use the IPv4 socket interface if we're only
    // dealing with IPv4 sockets? As long as the host system understands
    // IPv4-mapped IPv6, it's okay to pass IPv4-mapped IPv6 addresses to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. src/net/main_test.go

    	// If external IPv4 connectivity exists, we can try dialing
    	// non-node/interface local scope IPv4 addresses.
    	// On Windows, Lookup APIs may not return IPv4-related
    	// resource records when a node has no external IPv4
    	// connectivity.
    	testIPv4 = flag.Bool("ipv4", true, "assume external IPv4 connectivity exists")
    
    	// If external IPv6 connectivity exists, we can try dialing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/util/endpoint_test.go

    			expectedError: true,
    		},
    		{
    			name:         "invalid ip4, but valid DNS",
    			hostport:     "259.2.3.4",
    			expectedHost: "259.2.3.4",
    		},
    		{
    			name:          "invalid ip4",
    			hostport:      "1..3.4",
    			expectedError: true,
    		},
    		{
    			name:          "invalid ip4(2):port",
    			hostport:      "1..3.4:1234",
    			expectedError: true,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 23 03:19:26 UTC 2019
    - 10K bytes
    - Viewed (0)
  7. samples/tcp-echo/tcp-echo-ipv4.yaml

    apiVersion: v1
    kind: Service
    metadata:
      name: tcp-echo
      labels:
        app: tcp-echo
        service: tcp-echo
    spec:
      ipFamilyPolicy: SingleStack
      ipFamilies:
      - IPv4
      ports:
      - name: tcp
        port: 9000
      - name: tcp-other
        port: 9001
      # Port 9002 is omitted intentionally for testing the pass through filter chain.
      selector:
        app: tcp-echo
    ---
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 28 17:35:19 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  8. src/vendor/golang.org/x/net/nettest/nettest.go

    // MulticastSource returns a unicast IP address on ifi when ifi is an
    // IP multicast-capable network interface.
    //
    // The provided network must be "ip", "ip4" or "ip6".
    func MulticastSource(network string, ifi *net.Interface) (net.IP, error) {
    	switch network {
    	case "ip", "ip4", "ip6":
    	default:
    		return nil, errNoAvailableAddress
    	}
    	if ifi == nil || ifi.Flags&net.FlagUp == 0 || ifi.Flags&net.FlagMulticast == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/net/testdata/ipv4-hosts

    Roland Shoemaker <******@****.***> 1623086489 -0700
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 08 20:23:22 UTC 2021
    - 274 bytes
    - Viewed (0)
  10. src/net/ipsock.go

    	"runtime"
    	"sync"
    	_ "unsafe" // for linkname
    )
    
    // BUG(rsc,mikio): On DragonFly BSD and OpenBSD, listening on the
    // "tcp" and "udp" networks does not listen for both IPv4 and IPv6
    // connections. This is due to the fact that IPv4 traffic will not be
    // routed to an IPv6 socket - two separate sockets are required if
    // both address families are to be supported.
    // See inet6(4) for details.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 9.4K bytes
    - Viewed (0)
Back to top