Documentation ¶
Index ¶
- func Dial(t testing.TB, network, address string) net.Conn
- func DialIP(t testing.TB, network string, laddr, raddr *net.IPAddr) *net.IPConn
- func DialTCP(t testing.TB, network string, laddr, raddr *net.TCPAddr) *net.TCPConn
- func DialTimeout(t testing.TB, network, address string, timeout time.Duration) net.Conn
- func DialUDP(t testing.TB, network string, laddr, raddr *net.UDPAddr) *net.UDPConn
- func DialUnix(t testing.TB, network string, laddr, raddr *net.UnixAddr) *net.UnixConn
- func FileConn(t testing.TB, f *os.File) (c net.Conn)
- func FileListener(t testing.TB, f *os.File) (ln net.Listener)
- func FilePacketConn(t testing.TB, f *os.File) (c net.PacketConn)
- func InterfaceAddrs(t testing.TB) []net.Addr
- func InterfaceByIndex(t testing.TB, index int) *net.Interface
- func InterfaceByName(t testing.TB, name string) *net.Interface
- func Interfaces(t testing.TB) []net.Interface
- func Listen(t testing.TB, network, address string) net.Listener
- func ListenIP(t testing.TB, network string, laddr *net.IPAddr) *net.IPConn
- func ListenMulticastUDP(t testing.TB, network string, ifi *net.Interface, gaddr *net.UDPAddr) *net.UDPConn
- func ListenPacket(t testing.TB, network, address string) net.PacketConn
- func ListenTCP(t testing.TB, network string, laddr *net.TCPAddr) *net.TCPListener
- func ListenUDP(t testing.TB, network string, laddr *net.UDPAddr) *net.UDPConn
- func ListenUnix(t testing.TB, network string, laddr *net.UnixAddr) *net.UnixListener
- func ListenUnixgram(t testing.TB, network string, laddr *net.UnixAddr) *net.UnixConn
- func LookupAddr(t testing.TB, addr string) (names []string)
- func LookupCNAME(t testing.TB, host string) (cname string)
- func LookupHost(t testing.TB, host string) (addrs []string)
- func LookupIP(t testing.TB, host string) []net.IP
- func LookupMX(t testing.TB, name string) []*net.MX
- func LookupNS(t testing.TB, name string) []*net.NS
- func LookupPort(t testing.TB, network, service string) (port int)
- func LookupSRV(t testing.TB, service, proto, name string) (cname string, addrs []*net.SRV)
- func LookupTXT(t testing.TB, name string) []string
- func ParseCIDR(t testing.TB, s string) (net.IP, *net.IPNet)
- func ParseMAC(t testing.TB, s string) (hw net.HardwareAddr)
- func ResolveIPAddr(t testing.TB, network, address string) *net.IPAddr
- func ResolveTCPAddr(t testing.TB, network, address string) *net.TCPAddr
- func ResolveUDPAddr(t testing.TB, network, address string) *net.UDPAddr
- func ResolveUnixAddr(t testing.TB, network, address string) *net.UnixAddr
- func SplitHostPort(t testing.TB, hostport string) (host, port string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialTimeout ¶
func FilePacketConn ¶
func ListenMulticastUDP ¶
func ListenPacket ¶
func ListenPacket(t testing.TB, network, address string) net.PacketConn
func ListenUnix ¶
func ListenUnixgram ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.