| 19 | ) |
| 20 | |
| 21 | type 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 | |
| 41 | type udpUDPConn struct { |
| 42 | srcAddr *net.UDPAddr |
nothing calls this directly
no outgoing calls
no test coverage detected