([]byte, netip.AddrPort)
| 34 | // write/read methods. |
| 35 | type PacketConn interface { |
| 36 | WriteToUDPAddrPort([]byte, netip.AddrPort) (int, error) |
| 37 | ReadFromUDPAddrPort([]byte) (int, netip.AddrPort, error) |
| 38 | io.Closer |
| 39 | LocalAddr() net.Addr |
no outgoing calls