MCPcopy
hub / github.com/moby/moby / UDPProxy

Struct UDPProxy

cmd/docker-proxy/udp_proxy_linux.go:78–86  ·  view source on GitHub ↗

UDPProxy is proxy for which handles UDP datagrams. It implements the Proxy interface to handle UDP traffic forwarding between the frontend and backend addresses.

Source from the content-addressed store, hash-verified

76// interface to handle UDP traffic forwarding between the frontend and backend
77// addresses.
78type UDPProxy struct {
79 listener *net.UDPConn
80 frontendAddr *net.UDPAddr
81 backendAddr *net.UDPAddr
82 connTrackTable connTrackMap
83 connTrackLock sync.Mutex
84 connTrackTimeout time.Duration
85 ipVer ipVersion
86}
87
88// NewUDPProxy creates a new UDPProxy.
89func NewUDPProxy(listener *net.UDPConn, backendAddr *net.UDPAddr, ipVer ipVersion) (*UDPProxy, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected