[ee122] checking dropped connections
miken087 at berkeley.edu
miken087 at berkeley.edu
Sun Sep 23 18:49:16 PDT 2007
How do you check if the server has stopped running? Currently my code does
error checking to see if a socket was created, but in the case when the
server suddenly stops, my client just quits out without outputting an
error. However when I gdb through it, I find out that I get a broken pipe
signal on my send command (at this time the server is already down). Also
for error handling, do I display the error message with perror or printf?
Michael Ngo
More information about the ee122
mailing list