sockets: recv

This commit is contained in:
Matheus
2022-10-18 13:28:06 -03:00
parent 2b9cdff5ba
commit 1a48d652f5
3 changed files with 62 additions and 3 deletions
+9
View File
@@ -92,3 +92,12 @@ int socket_send(socket_t* socket, void* buff, size_t len, int flags, int* count)
return EINVAL;
}
}
int socket_recv(socket_t* socket, void* buff, size_t len, int flags, int* count){
switch(socket->family){
case AF_UNIX:
return unsocket_recv(socket, buff, len, flags, count);
default:
return EINVAL;
}
}