int tos_sal_module_recv_timeout(int sock, void *buf, size_t len, uint32_t timeout); This 'len' is data buffer length.
first commit for opensource