udp

package
v0.0.0-...-3e1ade8 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

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

func NewPacket

func NewPacket(ip net.IP, data []byte) *Packet

func (*Packet) Data

func (p *Packet) Data() []byte

func (*Packet) IP

func (p *Packet) IP() net.IP

type PortPair

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

func NewPortPair

func NewPortPair(localPort, remotePort, maxBufferSize int) *PortPair

func (*PortPair) Send

func (p *PortPair) Send(ip net.IP, data []byte) error

func (*PortPair) Start

func (p *PortPair) Start() (<-chan *Packet, error)

func (*PortPair) Stop

func (p *PortPair) Stop() error

Jump to

Keyboard shortcuts

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