Arc Forumnew | comments | leaders | submitlogin
1 point by stefano 5846 days ago | link | parent

Maybe the problem with peekc is that it tries to read a character from the socket, but the server has yet to write that character, and peekc doesn't return nil because the server hasn't yet closed its output stream, so there is no end-of-file.