I created a udp socket, and prepared to receive data from peer socket, and the peer socket will send 10000 bytes to me.
here, I found that when only receiving 1000 bytes of 10000, whill throw error message too long.
char buf[1000]
_socket.receiveBytes(buffer, sizeof(buffer));
how to deal with it.