netTester

package
v0.0.0-...-05317bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTcpListenerDialerTest

func RunTcpListenerDialerTest(listenerNewer ListenNewer,
	Dialer DirectDialer,
	debug bool)

func RunTcpTestWithNetDialAndNetListener

func RunTcpTestWithNetDialAndNetListener(listenAddr string, dialAddr string, debug bool)
func RunTcpTestWithListenAddr(listenAddr string,Dialer DirectDialer,debug bool){
	return RunTcpListenerDialerTest(
		func()(net.Listener,error){
			return net.Listen("tcp",listenAddr)
		},
		Dialer,debug)
}

Types

type DirectDialer

type DirectDialer func() (net.Conn, error)

type ListenNewer

type ListenNewer func() (net.Listener, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL