udp

package
v0.0.0-...-1ceb02d Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package udp wraps UDP packets in network.Connections.

Since UDP packets are not real connections the abstraction is not an exact fit. Due to that, the connections are either read- or write-only and have other restrictions. In particular the write-only connection allows to write only up to 65 507 bytes, while the read-only reads the data from only one packet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(localAddress string, remoteAddresses []string, log zerolog.Logger) (network.Server, error)

NewServer initializes the network setup for the given local address and the set of remote addresses.

Types

This section is empty.

Jump to

Keyboard shortcuts

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