Gadver
This commit is contained in:
parent
3e0cf90288
commit
56f6a96ce0
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,9 @@ bool DDV_ready(int sock){
|
|||
fcntl(sock, F_SETFL, postflags);
|
||||
int r = recv(sock, &tmp, 1, MSG_PEEK);
|
||||
fcntl(sock, F_SETFL, preflags);
|
||||
if (r != 1){
|
||||
fprintf(stderr, "Er ging iets mis... %i\n", r);
|
||||
}
|
||||
return (r == 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue