Documentation ¶
Index ¶
- Variables
- func BoolToInt(b bool) int
- func Htons(h uint16) uint16
- func IPToSockaddr(family int, ip net.IP, port int, zone string) (syscall.Sockaddr, error)
- func Sockaddr(a *net.TCPAddr, family int) (syscall.Sockaddr, error)
- func SupportsIPv4() bool
- func SupportsIPv4map() bool
- func ToBuf(v interface{}) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var Ntohs = Htons
Ntohs ...
Functions ¶
func IPToSockaddr ¶
IPToSockaddr ...
func SupportsIPv4 ¶
func SupportsIPv4() bool
SupportsIPv4 supportsIPv4 reports whether the platform supports IPv4 networking functionality.
func SupportsIPv4map ¶
func SupportsIPv4map() bool
SupportsIPv4map supportsIPv4map reports whether the platform supports mapping an
IPv4 address inside an IPv6 address at transport layer protocols. See RFC 4291, RFC 4038 and RFC 3493.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.