Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • +1. He also cannot possibly detect EOS unless he checks the result of recv() for zero. Commented Jul 23, 2011 at 8:47
  • after incorporating your suggestions I see an error: server.c:85:5: error: too few arguments to function ârecvâ /usr/include/sys/socket.h:148:16: note: declared here line 85 of my code is do { received_bytes += recv(buffer + received_bytes, bytes_to_receive - received_bytes); } while (received_bytes != bytes_to_receive); Commented Jul 23, 2011 at 17:51
  • In the pseudo code the recv function has less arguments, right....that is what I am getting as error. Where should this code be placed or what all modififcations need to be done.. Commented Jul 23, 2011 at 18:00