SWRU455M February 2017 – October 2020 CC3120 , CC3120MOD , CC3130 , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3230S , CC3230SF , CC3235MODAS , CC3235MODASF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
By default the Rx boundary is kept. When the host application reads only a part of the data, the rest is dropped. The host application can disable the Rx boundary by using sl_SetSockOpt with SL_SO_RX_NO_IP_BOUNDARY. When the Rx boundary is disabled, reading only a part of the data does not drop the rest of the data. This is a proprietary option for UDP sockets only, which enables the host to read data in small chunks with limited buffering resources.
Example:
_i16 Status;
SlSockRxNoIpBoundary_t enableOption;
enableOption.RxIpNoBoundaryEnabled = 1;
Status = sl_SetSockOpt(Sd, SL_SOL_SOCKET, SL_SO_RX_NO_IP_BOUNDARY, (_u8*)&enableOption ,sizeof(enableOption));
if( Status )
{
// error
}