nettest

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TCPPort

func TCPPort(l NetworkListener) uint16

TCPPort of the listener address. If the listener isn't TCP, this may panic()

Types

type NetworkListener

type NetworkListener interface {
	Addr() net.Addr
}

A NetworkListener is a listener that looks for data on a network address. It is sometimes useful in testing to get this address so you can talk to it directly.

Jump to

Keyboard shortcuts

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