(pc *ipv6.PacketConn, conn *net.UDPConn, rxOffload bool)
| 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) { |
| 295 | return s.receiveIP(pc, conn, rxOffload, bufs, sizes, eps) |
| 296 | } |
| 297 | } |
| 298 | |
| 299 | // TODO: When all Binds handle IdealBatchSize, remove this dynamic function and |
| 300 | // rename the IdealBatchSize constant to BatchSize. |