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.

CC3220SF: Enabling Nagle algorithm

Part Number: CC3220SF

Hi

I am trying to enabled the Nagle algorithm (=disabling the TCP_NODELAY):

sockid = sl_Socket(AF_INET, SOCK_STREAM, 0);

// Connecting....

uint no_delay = 0;

 sl_SetSockOpt(sock_id, SL_SOL_SOCKET, TCP_NODELAY, &no_delay, sizeof(no_delay));

the return value is  SL_ERROR_BSD_ENOPROTOOPT (protocol not available). I am using version 2.20 of the SDK.

do I need to set a different value for the protocol?

 

Best Regards,

Tom

 

  • Hi Tom,

    SL_ERROR_BSD_ENOPROTOOPT indicates that the socket option you are trying to use is not supported by the CC32xx network stack.

    If a BSD socket option is not defined in the sl_socket.h header file, then it is not supported by the network stack. While the CC32xx network stack uses BSD socket APIs, it doesn't have the full range of options available that you might find in a Linux networking stack.

    Let me know if you need more clarification or have further questions on the CC32xx network stack.

    Regards,

    Michael

  • Hi Michael

    Thanks for your answer.

    Do you aware of any plans to support it in future versions?

    Best Regards,

    Tom