Open mchitre opened 1 year ago
Shouldn't this happen inside unetsocket_receive
? The user (in this case rxdata.c
) should just get all the Datagrams with the protocol set to DATA
or >=USER
. And if the socket is bound to a specific protocol, then ONLY that protocol. But that filtering should be done inside the unetsocket_receive
.
Yes, correct
Currently the example doesn't check protocol number, and so for larger datagrams, user will see each fragment, which he should not.