type net.IPAddr
87 uses
net (current package)
addrselect.go#L14: func sortByRFC6724(addrs []IPAddr) {
addrselect.go#L21: func sortByRFC6724withSrcs(addrs []IPAddr, srcs []netip.Addr) {
addrselect.go#L43: func srcAddrs(addrs []IPAddr) []netip.Addr {
addrselect.go#L79: addrs []IPAddr // addrs to sort
cgo_unix.go#L146: func cgoLookupHostIP(network, name string) (addrs []IPAddr, err error) {
cgo_unix.go#L202: addr := IPAddr{IP: copyIP(sa.Addr[:])}
cgo_unix.go#L206: addr := IPAddr{IP: copyIP(sa.Addr[:]), Zone: zoneCache.name(int(sa.Scope_id))}
cgo_unix.go#L213: func cgoLookupIP(ctx context.Context, network, name string) (addrs []IPAddr, err error) {
cgo_unix.go#L214: return doBlockingWithCtx(ctx, func() ([]IPAddr, error) {
dial.go#L289: ip *IPAddr
dial.go#L299: case *IPAddr:
dial.go#L319: case *IPAddr:
dial.go#L654: case *IPAddr:
dial.go#L655: la, _ := la.(*IPAddr)
dial.go#L764: case *IPAddr:
dnsclient_unix.go#L574: func goLookupIPFiles(name string) (addrs []IPAddr, canonical string) {
dnsclient_unix.go#L579: addr := IPAddr{IP: ip, Zone: zone}
dnsclient_unix.go#L589: func (r *Resolver) goLookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) {
dnsclient_unix.go#L595: func (r *Resolver) goLookupIPCNAMEOrder(ctx context.Context, network, name string, order hostLookupOrder, conf *dnsConfig) (addrs []IPAddr, cname dnsmessage.Name, err error) {
dnsclient_unix.go#L721: addrs = append(addrs, IPAddr{IP: IP(a.A[:])})
dnsclient_unix.go#L736: addrs = append(addrs, IPAddr{IP: IP(aaaa.AAAA[:])})
file_unix.go#L80: case *IPAddr:
file_unix.go#L112: case *IPAddr:
hook.go#L19: fn func(context.Context, string, string) ([]IPAddr, error),
hook.go#L22: ) ([]IPAddr, error) {
interface_linux.go#L242: ifma := &IPAddr{IP: IPv4(byte(i>>24), byte(i>>16), byte(i>>8), byte(i))}
interface_linux.go#L267: ifma := &IPAddr{IP: IP{b[0], b[1], b[2], b[3], b[4], b[5], b[6], b[7], b[8], b[9], b[10], b[11], b[12], b[13], b[14], b[15]}}
iprawsock.go#L31: type IPAddr struct {
iprawsock.go#L37: func (a *IPAddr) Network() string { return "ip" }
iprawsock.go#L39: func (a *IPAddr) String() string {
iprawsock.go#L50: func (a *IPAddr) isWildcard() bool {
iprawsock.go#L57: func (a *IPAddr) opAddr() Addr {
iprawsock.go#L77: func ResolveIPAddr(network, address string) (*IPAddr, error) {
iprawsock.go#L94: return addrs.forResolve(network, address).(*IPAddr), nil
iprawsock.go#L113: func (c *IPConn) ReadFromIP(b []byte) (int, *IPAddr, error) {
iprawsock.go#L146: func (c *IPConn) ReadMsgIP(b, oob []byte) (n, oobn, flags int, addr *IPAddr, err error) {
iprawsock.go#L158: func (c *IPConn) WriteToIP(b []byte, addr *IPAddr) (int, error) {
iprawsock.go#L174: a, ok := addr.(*IPAddr)
iprawsock.go#L191: func (c *IPConn) WriteMsgIP(b, oob []byte, addr *IPAddr) (n, oobn int, err error) {
iprawsock.go#L211: func DialIP(network string, laddr, raddr *IPAddr) (*IPConn, error) {
iprawsock.go#L230: func ListenIP(network string, laddr *IPAddr) (*IPConn, error) {
iprawsock.go#L232: laddr = &IPAddr{}
iprawsock_posix.go#L17: return &IPAddr{IP: sa.Addr[0:]}
iprawsock_posix.go#L19: return &IPAddr{IP: sa.Addr[0:], Zone: zoneCache.name(int(sa.ZoneId))}
iprawsock_posix.go#L24: func (a *IPAddr) family() int {
iprawsock_posix.go#L34: func (a *IPAddr) sockaddr(family int) (syscall.Sockaddr, error) {
iprawsock_posix.go#L41: func (a *IPAddr) toLocal(net string) sockaddr {
iprawsock_posix.go#L42: return &IPAddr{loopbackIP(net), a.Zone}
iprawsock_posix.go#L45: func (c *IPConn) readFrom(b []byte) (int, *IPAddr, error) {
iprawsock_posix.go#L48: var addr *IPAddr
iprawsock_posix.go#L52: addr = &IPAddr{IP: sa.Addr[0:]}
iprawsock_posix.go#L55: addr = &IPAddr{IP: sa.Addr[0:], Zone: zoneCache.name(int(sa.ZoneId))}
iprawsock_posix.go#L75: func (c *IPConn) readMsg(b, oob []byte) (n, oobn, flags int, addr *IPAddr, err error) {
iprawsock_posix.go#L80: addr = &IPAddr{IP: sa.Addr[0:]}
iprawsock_posix.go#L82: addr = &IPAddr{IP: sa.Addr[0:], Zone: zoneCache.name(int(sa.ZoneId))}
iprawsock_posix.go#L87: func (c *IPConn) writeTo(b []byte, addr *IPAddr) (int, error) {
iprawsock_posix.go#L101: func (c *IPConn) writeMsg(b, oob []byte, addr *IPAddr) (n, oobn int, err error) {
iprawsock_posix.go#L115: func (sd *sysDialer) dialIP(ctx context.Context, laddr, raddr *IPAddr) (*IPConn, error) {
iprawsock_posix.go#L138: func (sl *sysListener) listenIP(ctx context.Context, laddr *IPAddr) (*IPConn, error) {
ipsock.go#L69: case *IPAddr:
ipsock.go#L132: func filterAddrList(filter func(IPAddr) bool, ips []IPAddr, inetaddr func(IPAddr) Addr, originalAddr string) (addrList, error) {
ipsock.go#L146: func ipv4only(addr IPAddr) bool {
ipsock.go#L151: func ipv6only(addr IPAddr) bool {
ipsock.go#L271: inetaddr := func(ip IPAddr) Addr {
ipsock.go#L278: return &IPAddr{IP: ip.IP, Zone: ip.Zone}
ipsock.go#L284: return addrList{inetaddr(IPAddr{})}, nil
ipsock.go#L297: ips = append(ips, IPAddr{IP: IPv4zero})
ipsock.go#L300: var filter func(IPAddr) bool
lookup.go#L209: func (r *Resolver) LookupIPAddr(ctx context.Context, host string) ([]IPAddr, error) {
lookup.go#L238: ips = append(ips, addr.(*IPAddr).IP)
lookup.go#L294: func (r *Resolver) lookupIPAddr(ctx context.Context, network, host string) ([]IPAddr, error) {
lookup.go#L300: return []IPAddr{{IP: IP(ip.AsSlice()).To16(), Zone: ip.Zone()}}, nil
lookup.go#L310: if alt, _ := ctx.Value(nettrace.LookupIPAltResolverKey{}).(func(context.Context, string, string) ([]IPAddr, error)); alt != nil {
lookup.go#L377: addrs, _ := r.Val.([]IPAddr)
lookup.go#L386: func lookupIPReturn(addrsi any, err error, shared bool) ([]IPAddr, error) {
lookup.go#L390: addrs := addrsi.([]IPAddr)
lookup.go#L392: clone := make([]IPAddr, len(addrs))
lookup.go#L400: func ipAddrsEface(addrs []IPAddr) []any {
lookup_unix.go#L64: func (r *Resolver) lookupIP(ctx context.Context, network, host string) (addrs []IPAddr, err error) {
sockopt_posix.go#L35: case *IPAddr:
sockopt_posix.go#L62: case *IPAddr:
sockopt_posix.go#L85: case *IPAddr:
net/http/httptrace
trace.go#L54: addrs := make([]net.IPAddr, len(netIPs))
trace.go#L56: addrs[i] = ip.(net.IPAddr)
trace.go#L219: Addrs []net.IPAddr
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |