Nog een poging...

This commit is contained in:
Thulinma 2010-11-08 01:01:59 +01:00
parent bbd7d88011
commit 3ae420a6b1

View file

@ -38,12 +38,12 @@ int DDV_Accept(int sock){
bool DDV_write(void * buffer, int width, int count, int sock){ bool DDV_write(void * buffer, int width, int count, int sock){
bool r = (send(sock, buffer, width*count, 0) == width*count); bool r = (send(sock, buffer, width*count, 0) == width*count);
if (!r){socketError = true} if (!r){socketError = true;}
return r; return r;
} }
bool DDV_read(void * buffer, int width, int count, int sock){ bool DDV_read(void * buffer, int width, int count, int sock){
bool r = (recv(sock, buffer, width*count, 0) == width*count); bool r = (recv(sock, buffer, width*count, 0) == width*count);
if (!r){socketError = true} if (!r){socketError = true;}
return r; return r;
} }