I'm sending udp packets at an extremely fast pace. On the other end I'm listening using zsocket like so:
err = zs.Listen(func(frame *nettypes.Frame, frameLen uint16, capturedLen uint16) {
ln:= frameLen
mPay, mOff := frame.MACPayload(0)
ln -= mOff
udp := nettypes.UDPPacket(mPay)
udp.Bytes()
atomic.AddUint64(&packetCount, 1)
})
if err != nil {
fmt.Printf("error:%v\n", err)
}
And after a couple seconds it crashes with "interrupted system call"
I'd love some guidance, if you may, on how to use it properly or clarification on what I'm doing wrong?
Thanks!
I'm sending udp packets at an extremely fast pace. On the other end I'm listening using zsocket like so:
And after a couple seconds it crashes with "interrupted system call"
I'd love some guidance, if you may, on how to use it properly or clarification on what I'm doing wrong?
Thanks!