udp

package
v0.0.0-...-e4d881b Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Port

type Port uint16

type ReadWriter

type ReadWriter interface {
	Read(len int) ([]byte, error)
	Write(data []byte) (int, error)
	io.Closer
}

func NewReadWriter

func NewReadWriter(local, remote Port, ip *ipv4.Address) (ReadWriter, error)

type Reader

type Reader interface {
	Read(len int) ([]byte, error)
	io.Closer
}

func NewReader

func NewReader(port Port, ip *ipv4.Address) (Reader, error)

type Writer

type Writer interface {
	Write(data []byte) (int, error)
	io.Closer
}

func NewWriter

func NewWriter(src, dest Port, dstIP *ipv4.Address) (Writer, error)

Jump to

Keyboard shortcuts

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