MCPcopy
hub / github.com/yusing/godoxy / UDPUDPStream

Struct UDPUDPStream

internal/route/stream/udp_udp.go:21–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19)
20
21type UDPUDPStream struct {
22 listener net.PacketConn
23
24 network string
25 dstNetwork string
26
27 laddr *net.UDPAddr
28 dst *net.UDPAddr
29 agent *agentpool.Agent
30
31 preDial nettypes.HookFunc
32 onRead nettypes.HookFunc
33
34 cleanUpTicker *time.Ticker
35
36 conns map[string]*udpUDPConn
37 closed atomic.Bool
38 mu sync.Mutex
39}
40
41type udpUDPConn struct {
42 srcAddr *net.UDPAddr

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected