syscall.SockaddrInet4.Port (field)
15 uses
syscall (current package)
syscall_linux.go#L515: if sa.Port < 0 || sa.Port > 0xFFFF {
syscall_linux.go#L520: p[0] = byte(sa.Port >> 8)
syscall_linux.go#L521: p[1] = byte(sa.Port)
syscall_linux.go#L656: sa.Port = int(p[0])<<8 + int(p[1])
syscall_unix.go#L268: Port int
syscall_unix.go#L337: from.Port = int(port[0])<<8 + int(port[1])
syscall_unix.go#L364: from.Port = int(port[0])<<8 + int(port[1])
net
ipsock_posix.go#L153: sa := syscall.SockaddrInet4{Port: port}
ipsock_posix.go#L210: Port: int(ap.Port()),
tcpsock_posix.go#L19: return &TCPAddr{IP: sa.Addr[0:], Port: sa.Port}
udpsock_posix.go#L18: return &UDPAddr{IP: sa.Addr[0:], Port: sa.Port}
udpsock_posix.go#L55: *addr = UDPAddr{IP: ip[:], Port: from.Port}
udpsock_posix.go#L81: port = from.Port
udpsock_posix.go#L103: addr = netip.AddrPortFrom(ip, uint16(sa.Port))
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. |