This commit is contained in:
Thulinma 2010-11-08 21:40:38 +01:00
parent 058096f5d5
commit f3d73b3df4

View file

@ -94,6 +94,9 @@ bool DDV_ready(int sock){
fcntl(sock, F_SETFL, postflags); fcntl(sock, F_SETFL, postflags);
int r = recv(sock, &tmp, 1, MSG_PEEK); int r = recv(sock, &tmp, 1, MSG_PEEK);
fcntl(sock, F_SETFL, preflags); fcntl(sock, F_SETFL, preflags);
if (r != 1){
fprintf(stderr, "Er ging iets mis... %i\n", r);
}
return (r == 1); return (r == 1);
} }