udp

package
v0.11.16 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxPacketSize is the maximum size of data that can be in a UDP packet
	MaxPacketSize = 65507
)

Variables

This section is empty.

Functions

func Dial

func Dial(destination, name string) (transport.Connection, error)

Dial attempts to dial a UDP endpoint and create a connection to it

Types

type AddressParser

type AddressParser struct{}

AddressParser is a parser for UDP addresses

func (AddressParser) Parse

func (ap AddressParser) Parse(s string) (transport.Address, error)

Parse attempts to parse a UDP address from a string

Jump to

Keyboard shortcuts

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