MCPcopy
hub / github.com/golang/net / Inet4Addr

Struct Inet4Addr

lif/address.go:22–25  ·  view source on GitHub ↗

An Inet4Addr represents an internet address for IPv4.

Source from the content-addressed store, hash-verified

20
21// An Inet4Addr represents an internet address for IPv4.
22type Inet4Addr struct {
23 IP [4]byte // IP address
24 PrefixLen int // address prefix length
25}
26
27// Family implements the Family method of Addr interface.
28func (a *Inet4Addr) Family() int { return syscall.AF_INET }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected