Arc Forum
new
|
comments
|
leaders
|
submit
login
1 point
by
stefano
6069 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.