You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, you can use recv and send to read from and write to WASIp2 sockets, respectively, but neither read nor write work. We should support those functions as well, using logic analogous to what we have in close, where we check whether the file descriptor is a WASIp2 socket and defer to the appropriate function if it is:
(Note that whereas we use descriptor_table_remove in the close implementation, we'll want to use descriptor_table_get_ref in the read and write implementations.)
The text was updated successfully, but these errors were encountered:
Currently, you can use
recv
andsend
to read from and write to WASIp2 sockets, respectively, but neitherread
norwrite
work. We should support those functions as well, using logic analogous to what we have inclose
, where we check whether the file descriptor is a WASIp2 socket and defer to the appropriate function if it is:wasi-libc/libc-bottom-half/sources/__wasilibc_fd_renumber.c
Lines 78 to 95 in b9ef79d
(Note that whereas we use
descriptor_table_remove
in theclose
implementation, we'll want to usedescriptor_table_get_ref
in theread
andwrite
implementations.)The text was updated successfully, but these errors were encountered: