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
+3
View File
@@ -66,6 +66,9 @@ int vfs_write(int* error, vnode_t* node, void* buff, size_t count, size_t offset
int type = GETTYPE(node->st.st_mode);
if(type == TYPE_SOCKET)
return socket_send(node->objdata, buff, count, 0, error);
if(type == TYPE_FIFO)
return pipe_write(node->objdata, buff, count, error);