On 08/18/2016 09:31 AM, Li Zhijian wrote:
/* * Returns * 0: SocketReadState is not ready * 1: SocketReadState is ready * otherwise error occurs */ int net_fill_rstate(SocketReadState *rs, const uint8_t *buf, int size)it seems you need to fix the returns and comments too. simply, just remove the 'return 1;' would be OK ? because the callers only concern about the error case.
OK, I got your point, will fix it in V2. -- Thanks zhangchen