(pc *ipv4.PacketConn, conn *net.UDPConn, rxOffload bool)
| 285 | } |
| 286 | |
| 287 | func (s *StdNetBind) makeReceiveIPv4(pc *ipv4.PacketConn, conn *net.UDPConn, rxOffload bool) ReceiveFunc { |
| 288 | return func(bufs [][]byte, sizes []int, eps []Endpoint) (n int, err error) { |
| 289 | return s.receiveIP(pc, conn, rxOffload, bufs, sizes, eps) |
| 290 | } |
| 291 | } |
| 292 | |
| 293 | func (s *StdNetBind) makeReceiveIPv6(pc *ipv6.PacketConn, conn *net.UDPConn, rxOffload bool) ReceiveFunc { |
| 294 | return func(bufs [][]byte, sizes []int, eps []Endpoint) (n int, err error) { |