gspdtest

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package gspdtest is a package used by Godspeed for testing. This package isn't really meant to be consumed by anyone.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildListener

func BuildListener(port int) (*net.UDPConn, chan int, chan []byte)

BuildListener is a function which builds a *net.UDPConn listening on localhost on the port specified. It also returns a control channel and a return channel.

func Listener

func Listener(l *net.UDPConn, ctrl chan int, c chan []byte)

Listener is a function which takes a *net.UDPConn and sends any data received on it back over the c channel. This function is meant to be ran within a goroutine. The ctrl channel is used to shut down the goroutine.

Types

This section is empty.

Jump to

Keyboard shortcuts

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