package udpproxy

import "github.com/rootless-containers/rootlesskit/pkg/port/builtin/parent/udp/udpproxy"

Package udpproxy is from https://raw.githubusercontent.com/docker/libnetwork/fec6476dfa21380bf8ee4d74048515d968c1ee63/cmd/proxy/udp_proxy.go

Index

Constants

const (
	// UDPConnTrackTimeout is the timeout used for UDP connection tracking
	UDPConnTrackTimeout = 90 * time.Second
	// UDPBufSize is the buffer size for the UDP proxy
	UDPBufSize = 65507
)

Types

type UDPProxy

type UDPProxy struct {
	LogWriter   io.Writer
	Listener    *net.UDPConn
	BackendDial func() (*net.UDPConn, error)
	// contains filtered or unexported fields
}

UDPProxy is proxy for which handles UDP datagrams. From libnetwork udp_proxy.go .

func (*UDPProxy) Close

func (proxy *UDPProxy) Close()

Close stops forwarding the traffic.

func (*UDPProxy) Run

func (proxy *UDPProxy) Run()

Run starts forwarding the traffic using UDP.

Source Files

udp_proxy.go

Version
v1.0.0
Published
Mar 25, 2022
Platform
js/wasm
Imports
8 packages
Last checked
2 hours ago

Tools for package owners.