Skip to content

udp_runtime: IPv4 libc socket and Node pump#25

Merged
ch4r10t33r merged 1 commit into
feat/node-runtimefrom
feat/udp-event-loop
May 10, 2026
Merged

udp_runtime: IPv4 libc socket and Node pump#25
ch4r10t33r merged 1 commit into
feat/node-runtimefrom
feat/udp-event-loop

Conversation

@ch4r10t33r

Copy link
Copy Markdown
Owner

Implements the UDP/event-loop gap from #16: an IPv4 datagram socket wrapper (recvfrom / sendto), pumpOnce that forwards one receive into Node.handleReceive and sends replies, and MSG_DONTWAIT support for non-blocking polls.

The zig_discv5 module now sets link_libc = true so std.c socket calls resolve on POSIX.

Tests: localhost round-trip (ordinary → WHOAREYOU) plus a non-blocking idle pump.

Closes #16.

- Add UdpSocket (bind, recv/send) and pumpOnce wiring to handleReceive
- Link libc on zig_discv5 for std.c datagram I/O
- Tests: localhost WHOAREYOU round-trip and MSG_DONTWAIT idle path

Closes #16.
@ch4r10t33r ch4r10t33r merged commit 7ba6cee into feat/node-runtime May 10, 2026
1 check passed
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