Receives a response packet.
- Parameters
-
- Returns
- 0 if succeeded. Other values indicate an error.
This function receives a response packet. If no response is available, the function will be blocked. For each c
, only one thread can use this function, though command sending functions can be used in parallel.
The response data stored in r
keep valid until the next call of this function or until yrmcds_cnt_close() is called. r
can be reused for the next call of yrmcds_cnt_recv().