INT32 m2m_socket_bsd_recv_data_size(M2M_SOCKET_BSD_SOCKET s, UINT32 *len)
Description: the function retrieves the size of the data pending on the specified socket.
Parameters:
s: socket handle;
len: pointer to the allocated variable that will be filled with the size of the data pending.
Return value:
on success: 0
on failure: < 0
Output data:
on success:
"len" points to the variable filled with the size of the data pending.
NOTE: m2m_socket_errno(…) function returns the failure reason.