Nog een poging...

This commit is contained in:
Thulinma 2010-11-08 00:56:49 +01:00
parent 8c646c6391
commit 0e68f770e3
4 changed files with 92 additions and 88 deletions

View file

@ -34,3 +34,11 @@ int DDV_Listen(int port){
int DDV_Accept(int sock){
return accept(sock, 0, 0);
}
bool DDV_write(char * buffer, int width, int count, int sock){
return (send(sock, buffer, width*count, 0) == width*count);
}
bool DDV_read(char * buffer, int width, int count, int sock){
return (recv(sock, buffer, width*count, 0) == width*count);
}