PDA

View Full Version : Edit: Chat problems


tal0n
05-24-2003, 06:32 PM
I didn't want to start another thread on a topic i have dwelled on. Well today's question is posted on another BBS and since i can't attach files i will just provide you with the link to that message posted by me.


http://cboard.cprogramming.com/showthread.php?s=&threadid=39873

RobSeace
05-24-2003, 07:33 PM
That's because your test is wrong... You're checking for the
return value of getpeername "== 0", and treating that as the
"error" condition, when in fact a return value of 0 means success...