Skip to content

Implement net for WASIp3 - #163

Open
adamrk wants to merge 1 commit into
abk/io-p3from
abk/net-p3
Open

adamrk wants to merge 1 commit into
abk/io-p3from
abk/net-p3

Conversation

@adamrk

@adamrk adamrk commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

Resolves #161

Based on #162

@adamrk
adamrk force-pushed the abk/net-p3 branch 2 times, most recently from b25f493 to 3ec7de0 Compare September 22, 2026 14:04
Comment thread src/net/tcp_listener.rs
Comment on lines +106 to +109
let (input, _receive_result) = socket.receive();
let (output, receiver) = wasip3::wit_stream::new();
let _send_result = socket.send(receiver);
Ok(TcpStream::new(input, output, socket))

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could save _receive_result and _send_result in the TcpStream and add a graceful shutdown method which checks them. But that should probably be a separate follow up.

@adamrk
adamrk marked this pull request as ready for review September 22, 2026 14:14

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant