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 ) { //