net: golang.org/x/net/internal/nettest Index | Files

package nettest

import "golang.org/x/net/internal/nettest"

Package nettest provides utilities for IP testing.

Index

Package Files

error_posix.go interface.go rlimit.go rlimit_unix.go stack.go stack_unix.go

func IsMulticastCapable

func IsMulticastCapable(network string, ifi *net.Interface) (net.IP, bool)

IsMulticastCapable reports whether ifi is an IP multicast-capable network interface. Network must be "ip", "ip4" or "ip6".

func MaxOpenFiles

func MaxOpenFiles() int

MaxOpenFiles returns the maximum number of open files for the caller's process.

func ProtocolNotSupported

func ProtocolNotSupported(err error) bool

ProtocolNotSupported reports whether err is a protocol not supported error.

func RoutedInterface

func RoutedInterface(network string, flags net.Flags) *net.Interface

RoutedInterface returns a network interface that can route IP traffic and satisfies flags. It returns nil when an appropriate network interface is not found. Network must be "ip", "ip4" or "ip6".

func SupportsIPv4

func SupportsIPv4() bool

SupportsIPv4 reports whether the platform supports IPv4 networking functionality.

func SupportsIPv6

func SupportsIPv6() bool

SupportsIPv6 reports whether the platform supports IPv6 networking functionality.

func SupportsRawIPSocket

func SupportsRawIPSocket() (string, bool)

SupportsRawIPSocket reports whether the platform supports raw IP sockets.

Package nettest imports 5 packages (graph). Updated 5 days ago. Refresh now. Tools for package owners.