c recv until zero is returned

前端 未结 0 1765
悲哀的现实
悲哀的现实 2021-01-24 09:58

In my client code (I control the server code too) I want to do something like this;

while( (result = recv(sock_fd, in_buff, SRV_BUFF_SIZE, 0)) >= 0 )
{
    //          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题