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.

DK-TM4C129X: What is the maximum size I can send with TIVA TIRTOS NDK using TCP

Part Number: DK-TM4C129X

Hello,

I am using the DK-TM4C129 board, TIVA TI-RTOS NDK stack. I need to send a huge block of data using TCP socket. Block is 150KB. What is the maximum block of data I can send with TCP send? Correct me if I am wrong but I understand that the NDK stack will just break it into chunks under the hood right? What parameter in the config file should I change in order to set the maximum block I can send or how it is broken into chunks?

Thanks.

Regards,

AJ

  • Hi AJ,

    You should be able to call send() with a buffer that's 150K for a TCP socket.

    Is this not working for you? Are you getting an error of sorts?

    The socket layer (sits above TCP) will keep calling TCP's TX function in a loop in order to send all of the data. Ultimately, it will get broken up into TCP packets that have max payload of 1460 bytes (that's the max TCP payload size over standard Ethernet).

    Steve