[En-Nut-Discussion] Having problems with UDP reception

Harald Kipp harald.kipp at egnite.de
Thu Aug 25 17:30:42 CEST 2011


Hi Thomas,

On 8/25/2011 1:20 PM, SOUMEILLAN, Thomas wrote:

> I having problem with the data reception using UDP : some of the packets sent to the UDP socket are lost (1 among 15000), I'm forced to use UDP and I can't lose data.

I could have discussed with you the fact, that you want an unreliable
protocol to reliably transfer data.

I could have discussed with you the fact, that you sent 32k(!) of HTML
formatted email to 600 subscribers of this mailing list, 19 MBytes in total.

But I do not. ;-)

Have a look at
http://www.ethernut.de/api/group__xg_udp_socket.html

Basically
 NutUdpSetSockOpt(sock, SO_RCVBUF, &udp_bufsiz, sizeof(udp_bufsiz));
should do the trick.

Regards,

Harald


More information about the En-Nut-Discussion mailing list