-->
Page 1 of 3

Increase UDP Receive Buffer Size

PostPosted: Mon Jul 11, 2016 12:37 pm
by Hexum064
Trying to find a way to increase the buffer side for a UDP receive to be greater than 1460 bytes.

Anyone know if this is possible?

Currently working in C directly with the SDK.

Re: Increase UDP Receive Buffer Size

PostPosted: Mon Jul 11, 2016 4:09 pm
by Me-no-dev
that is the maximum packet size that will go through the network so NO you can not increase that.

Re: Increase UDP Receive Buffer Size

PostPosted: Mon Jul 11, 2016 6:04 pm
by Hexum064
I thought the max packet size was 2^16?
https://en.wikipedia.org/wiki/User_Datagram_Protocol

Re: Increase UDP Receive Buffer Size

PostPosted: Mon Jul 11, 2016 8:22 pm
by martinayotte
That is true if using Jumbo_frame (even in TCP) :
https://en.wikipedia.org/wiki/Jumbo_frame
But this is not default with plain Ethernet_frame, which is the default on almost any OS.
https://en.wikipedia.org/wiki/Ethernet_frame
Even if ESP SDK would allows to change the MTU, I bet you would get into troubles with other PCs or other Devices on your network if MTU isn't matching there too.
You're better to stick with standards and send multiple packets.