MCPcopy Create free account
hub / github.com/encodeous/nylon / makeReceiveIPv4

Method makeReceiveIPv4

polyamide/conn/bind_std.go:287–291  ·  view source on GitHub ↗
(pc *ipv4.PacketConn, conn *net.UDPConn, rxOffload bool)

Source from the content-addressed store, hash-verified

285}
286
287func (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
293func (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) {

Callers 1

OpenMethod · 0.95

Calls 1

receiveIPMethod · 0.95

Tested by

no test coverage detected