Nog een poging...
This commit is contained in:
parent
0bfafcda2b
commit
2ad46257e7
1 changed files with 8 additions and 0 deletions
|
@ -34,3 +34,11 @@ int DDV_Listen(int port){
|
||||||
int DDV_Accept(int sock){
|
int DDV_Accept(int sock){
|
||||||
return accept(sock, 0, 0);
|
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);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue