Skip to content

feat(vmnet): add batched packet I/O - #289

Merged
Code-Hex merged 2 commits into
mainfrom
codex/vmnetsock-packet-batching
Oct 28, 2026
Merged

Code-Hex merged 2 commits into
mainfrom
codex/vmnetsock-packet-batching

Conversation

@Code-Hex

Copy link
Copy Markdown
Owner

Add Interface.ReadPackets and Interface.WritePackets for Ethernet frame batches. Callers own the buffers and can reuse them between reads. Native calls respect vmnet's packet and byte limits, and write errors return the number of frames confirmed sent.

Use batched reads in vmnetsock and combine Stream frames with net.Buffers. Datagram frame boundaries and the Adapter.Dup / Adapter.Close ownership contract stay unchanged. Includes GoDoc examples and tests for buffer reuse, burst delivery, cancellation, and shutdown.

This adds the packet batching support discussed in #205.

@Code-Hex
Code-Hex merged commit 48af67e into main Oct 28, 2026
12 of 13 checks passed
@Code-Hex
Code-Hex deleted the codex/vmnetsock-packet-batching branch October 28, 2026 11:39
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