Is this the limitation in NDK?
if I want to set the send buffer size more than 1472 bytes, how should I do.
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Is this the limitation in NDK?
if I want to set the send buffer size more than 1472 bytes, how should I do.
In Ethernet There is a Maximum Transmission Unit (MTU) =1500. So you can't send in one frame more data than MTU .
But in 1Gb ehternet there are a JUMBO frames which can be greater than 1500.
Hi Sergey Manuhin,
I know that Ethernet MTU is 1514.
In other TCP/IP protocol stack implementation(such as Linux, windows, lwip) , Application layer can send maximum 32768 bytes in one udp packet and IP layer do the fragmentation automatically.
so I think it is the limitation of NDK.
Jianguo
1.In linux or Windows big frame will be sent like some frames with length MTU. When you send big Ethernet buffer, your big buffer will be sent like several small packet.
NDK don't do it.
2. Try to see this function:
setsockopt(socket, SOL_SOCKET, SO_SNDBUF, &buffer_size, sizeof(int) );
Hi sergey manuhin,
I've already tested the setsockopt and SO_SNDBUF, there is no use
Jianguo