Skip to content

Commit

Permalink
Update libc-bottom-half/cloudlibc/src/libc/sys/socket/recv.c
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Dice <joel.dice@fermyon.com>
  • Loading branch information
badeend and dicej authored Dec 4, 2023
1 parent 76160c3 commit 6bb179a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libc-bottom-half/cloudlibc/src/libc/sys/socket/recv.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ssize_t tcp_recv(tcp_socket_t* socket, void* restrict buffer, size_t length, int
{
// TODO wasi-sockets: flags:
// - MSG_WAITALL: we can probably support these relatively easy.
// - MSG_OOB: could be shimed by always responding that no OOB data is available.
// - MSG_OOB: could be shimmed by always responding that no OOB data is available.
// - MSG_PEEK: could be shimmed by performing the receive into a local socket-specific buffer. And on subsequent receives first check that buffer.
// - MSG_TRUNC: return EOPNOTSUPP. Is UDP only.
// - MSG_EOR, MSG_CMSG_CLOEXEC: return EOPNOTSUPP. Is not supported on TCP or UDP.
Expand Down

0 comments on commit 6bb179a

Please sign in to comment.