SLM UDP arbitrary received data size by #XRECV and #XRECVFROM

Hi,

I do not know how to reliably get size of arbitrary UDP data received by #XRECV or #XRECVFROM.

It is clear for text data, but for binary data both #XRECV and #XRECVFROM do not report size of received data in advance before data.

Because arbitrary binary data can contain <CR><LF> or even "#XRECV: <any number>", how size of received data reported by SLM can be distinguished reliably?

Why #XRECV and #XRECVFROM do not report size of received data BEFORE data (that would work fine)?

Thank you.

Regads,
Michal

Related