Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sortByRFC6724 (0.14 sec)

  1. src/net/addrselect.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Minimal RFC 6724 address selection.
    
    package net
    
    import (
    	"net/netip"
    	"sort"
    )
    
    func sortByRFC6724(addrs []IPAddr) {
    	if len(addrs) < 2 {
    		return
    	}
    	sortByRFC6724withSrcs(addrs, srcAddrs(addrs))
    }
    
    func sortByRFC6724withSrcs(addrs []IPAddr, srcs []netip.Addr) {
    	if len(addrs) != len(srcs) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 00:24:06 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/net/dnsclient_unix.go

    	for _, haddr := range addr {
    		haddr, zone := splitHostZone(haddr)
    		if ip := ParseIP(haddr); ip != nil {
    			addr := IPAddr{IP: ip, Zone: zone}
    			addrs = append(addrs, addr)
    		}
    	}
    	sortByRFC6724(addrs)
    	return addrs, canonical
    }
    
    // goLookupIP is the native Go implementation of LookupIP.
    // The libc versions are in cgo_*.go.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Apr 14 18:23:45 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top