sockets: send

This commit is contained in:
Matheus
2022-10-18 12:45:16 -03:00
parent 86ff503191
commit b9e1f85486
5 changed files with 69 additions and 2 deletions
+9
View File
@@ -83,3 +83,12 @@ int socket_accept(socket_t** peer, socket_t* sock, void* addr, size_t* addrlen){
return EINVAL;
}
}
int socket_send(socket_t* socket, void* buff, size_t len, int flags, int* count){
switch(socket->family){
case AF_UNIX:
return unsocket_send(socket, buff, len, flags, count);
default:
return EINVAL;
}
}