Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Add basic TCP socket APIs. #33

Merged
merged 2 commits into from
Feb 2, 2023
Merged

Add basic TCP socket APIs. #33

merged 2 commits into from
Feb 2, 2023

Conversation

sunfishcode
Copy link
Member

Add basic TCP socket APIs.

This is based on @npmccullum's [wasi-snapshot-preview2 draft] which is
in turn based on the wasi-sockets proposal, though for simplify for
now it omits UDP sockets and some other features.

It's also based on the pseudo-streams PR; so that should proceed
first before this.

@sunfishcode
Copy link
Member Author

In particular, see e059e75 which is the new patch on top of #29.

@sunfishcode
Copy link
Member Author

This hits the bug discussed in bytecodealliance/wit-bindgen#454.

@sunfishcode sunfishcode force-pushed the sunfishcode/sockets branch 2 times, most recently from 4db9859 to 003668f Compare January 11, 2023 22:47
@sunfishcode sunfishcode force-pushed the sunfishcode/sockets branch 2 times, most recently from 404741f to cd870f7 Compare January 24, 2023 00:07
@sunfishcode sunfishcode force-pushed the sunfishcode/sockets branch 2 times, most recently from 0e4dcb9 to c709912 Compare January 30, 2023 20:10
@sunfishcode sunfishcode marked this pull request as ready for review January 30, 2023 20:10
@sunfishcode
Copy link
Member Author

With #29 and bytecodealliance/wit-bindgen#466, this is now ready.

There's more work to be done to implement the host sockets implementation, and more work to be done to sync up this API with the official wasi-sockets proposal, but one step at a time here!

This is based on @npmccullum's [wasi-snapshot-preview2 draft] which is
in turn based on the [wasi-sockets proposal], though for simplify for
now it omits UDP sockets and some other features.

It's also based on the [pseudo-streams PR]; so that should proceed
first before this.

[draft wasi-snapshot-preview2]: https://github.com/npmccallum/wasi-snapshot-preview2
[wasi-sockets proposal]: https://github.com/WebAssembly/wasi-sockets
[pseudo-streams PR]: #29
@sunfishcode sunfishcode merged commit 9454948 into main Feb 2, 2023
@sunfishcode sunfishcode deleted the sunfishcode/sockets branch February 2, 2023 19:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant