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
* Introduce UDP streams
Introduce new `inbound-datagram-stream` and `outbound-datagram-stream` types and moved `receive` and `send` methods to those respectively. These streams are returned by `bind` can be individually subscribed to. This resolves a design issue where a UDP server would end up in a spin loop because `receive` returned EWOULDBLOCK but poll_* always returned immediately because the socket was ready for sending. In this new setup, users can poll each direction separately. FixesWebAssembly/wasi-sockets#64
Additionally:
- Enable send-like behaviour by making `outbound-datagram::remote-address` optional. FixesWebAssembly/wasi-sockets#57
- Dropped the `network` parameter from the `connect` call, because `bind` is now _required_ to perform IO.
* Align names with wasi-http
* Revert previous changes to `bind`. Replace `connect` with `stream`
Remove the Mutex again. Instead allow `stream` to be called multiple times, but trap if the previous streams are still active.
* The code block was treated as Rust code.
* Align more closely to wasi-io's input&output-stream
* Use `send` instead of `sendto` on connected sockets.
prtest:full
0 commit comments