Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for connected UDP sockets #35

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

marten-seemann
Copy link

@marten-seemann marten-seemann commented May 17, 2024

Fixes #36.

TODO:

@marten-seemann
Copy link
Author

For some reason this only works for localhost, but not for other addresses. This is not very useful...
I'll need to dig into what's going on here.

@marten-seemann
Copy link
Author

For some reason this only works for localhost, but not for other addresses. This is not very useful... I'll need to dig into what's going on here.

After some more debugging, here's what's going on:

wasip1.DialUDP("udp", "127.0.0.1:1234", "8.8.8.8:1234")

fails, whereas

wasip1.DialUDP("udp", "0.0.0.0:1234", "8.8.8.8:1234")

succeeds.

I think this makes sense, since 8.8.8.8 is actually not available on the lo interface. You need to send from a different interface.

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.

connected UDP sockets
1 participant