Skip to content

feat: UdpSocket/UdpStream - #150

Open
ryan-surname-p wants to merge 1 commit into
bytecodealliance:mainfrom
ryan-surname-p:rnpridgeon-p2-udp
Open

feat: UdpSocket/UdpStream#150
ryan-surname-p wants to merge 1 commit into
bytecodealliance:mainfrom
ryan-surname-p:rnpridgeon-p2-udp

Conversation

@ryan-surname-p

Copy link
Copy Markdown

closes #95

Comment thread src/net/mod.rs
}
}

fn sockaddr_from_wasi(addr: IpSocketAddress) -> std::net::SocketAddr {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

lifted from net/tcp_listern.rs

Comment thread src/net/tcp_listener.rs
}
}

fn sockaddr_from_wasi(addr: IpSocketAddress) -> std::net::SocketAddr {

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

lifted to net/mod.rs

Ok(())
}

fn get_listening_address(

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

lifted into lib.rs

Comment thread test-programs/src/lib.rs
///
/// Guest programs which bind a socket print `Listening on {addr}`, so that a
/// test can discover the address even when the guest picked the port.
pub fn get_listening_address(

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

lifted from tests/tcp_echo_server.rs

@ryan-surname-p
ryan-surname-p marked this pull request as ready for review September 4, 2026 17:40
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.

add UdpStream

1 participant