udp

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2016 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

Writer is a simple implementation of the writer interface, for sending UDP messages

func NewUDPWriter

func NewUDPWriter(givenConnection *net.UDPConn, givenAddress *net.UDPAddr) *Writer

NewUDPWriter returns a new UDP Writer

func (*Writer) Write

func (udpWriter *Writer) Write(givenBytes []byte) (int, error)

Write is an implementation of the standard io.Writer interface

Jump to

Keyboard shortcuts

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