You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When net_read_uncompressed_nonblocking detects a packet of maximum length, it returns NET_ASYNC_NOT_READYright away. Looping in this case might save some higher level calls and help with edge-triggered event notification if there is still data to read:
do {
net_async->mp_status = net_read_packet_nonblocking(net, &len);
net_async->mp_total_length += len;
net->where_b += len;
} while (len == MAX_PACKET_LENGTH);
Or is there a specific reason for the early exit?
The text was updated successfully, but these errors were encountered:
When
net_read_uncompressed_nonblocking
detects a packet of maximum length, it returnsNET_ASYNC_NOT_READY
right away. Looping in this case might save some higher level calls and help with edge-triggered event notification if there is still data to read:Or is there a specific reason for the early exit?
The text was updated successfully, but these errors were encountered: