Enable socket-api recvmsg() and sendmsg() (#1042)

Implement socket-api `recvmsg()` and `sendmsg()` for wasm app,
add sample and update document.
This commit is contained in:
liang.he
2022-03-30 15:57:40 +08:00
committed by GitHub
parent 106974d915
commit 559a0502f1
7 changed files with 335 additions and 8 deletions

View File

@ -80,6 +80,12 @@ connect(int sockfd, const struct sockaddr *addr, socklen_t addrlen);
int
listen(int sockfd, int backlog);
ssize_t
recvmsg(int sockfd, struct msghdr *msg, int flags);
ssize_t
sendmsg(int sockfd, const struct msghdr *msg, int flags);
int
socket(int domain, int type, int protocol);
#endif