Skip to content

Commit fae1ac4

Browse files
committed
add WASIp2 TODO comments
// TODO #1: Add a public, WASIp2-only API for registering // `wasi::io::poll::Pollable`s directly (i.e. those which do not correspond to // any `wasi-libc` file descriptor, such as `wasi:http` requests). // // TODO #2: Add support for binding, listening, and accepting. This would // involve adding cases for `TCP_SOCKET_STATE_UNBOUND`, // `TCP_SOCKET_STATE_BOUND`, and `TCP_SOCKET_STATE_LISTENING` to the `match` // statements in `Selector::select`. // // TODO #3: Add support for UDP sockets. This would involve adding cases for // the `UDP_SOCKET_STATE_*` tags to the `match` statements in // `Selector::select`. Signed-off-by: Joel Dice <[email protected]>
1 parent 229e04b commit fae1ac4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/sys/wasi/p2.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,19 @@
2424
// API (see the `netc` module below) to do so. Once
2525
// https://github.com/WebAssembly/wasi-libc/issues/542 is addressed, we'll be
2626
// able to switch to a public API.
27+
//
28+
// TODO #1: Add a public, WASIp2-only API for registering
29+
// `wasi::io::poll::Pollable`s directly (i.e. those which do not correspond to
30+
// any `wasi-libc` file descriptor.
31+
//
32+
// TODO #2: Add support for binding, listening, and accepting. This would
33+
// involve adding cases for `TCP_SOCKET_STATE_UNBOUND`,
34+
// `TCP_SOCKET_STATE_BOUND`, and `TCP_SOCKET_STATE_LISTENING` to the `match`
35+
// statements in `Selector::select`.
36+
//
37+
// TODO #3: Add support for UDP sockets. This would involve adding cases for
38+
// the `UDP_SOCKET_STATE_*` tags to the `match` statements in
39+
// `Selector::select`.
2740

2841
use crate::{Interest, Token};
2942
use netc as libc;

0 commit comments

Comments
 (0)