Skip to content

Conversation

@tttuuu888
Copy link
Contributor

This change adds the JANET_STREAM_UDPSERVER flag to :datagram streams created by net/connect.
Previously, these streams were missing the flag, causing functions like net/send-to to fail with a "bad stream" error.

Thank you.

@bakpakin
Copy link
Member

Thanks @tttuuu888 , this looks like a good improvement. I suppose although a UDP connection isn't really a "server", the net/send-to and net/recv-from would work fine in this case.

@bakpakin bakpakin merged commit 1ead670 into janet-lang:master Aug 12, 2025
13 checks passed
@tttuuu888 tttuuu888 deleted the work-issue-1620 branch August 13, 2025 13:30
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.

2 participants