Draft
Replace bach’s UDP simulation backend with a first-pass turmoil-net adapter#113
Conversation
Agent-Logs-Url: https://github.com/camshaft/bach/sessions/0fe5944e-8451-4d54-ad6a-dac452aff1be Co-authored-by: camshaft <799311+camshaft@users.noreply.github.com>
Agent-Logs-Url: https://github.com/camshaft/bach/sessions/0fe5944e-8451-4d54-ad6a-dac452aff1be Co-authored-by: camshaft <799311+camshaft@users.noreply.github.com>
Agent-Logs-Url: https://github.com/camshaft/bach/sessions/0fe5944e-8451-4d54-ad6a-dac452aff1be Co-authored-by: camshaft <799311+camshaft@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR swaps bach’s internal network backend over to
turmoil-netas a first pass, with the goal of preserving the existingbach::netsurface and surfacing the remaining compatibility gaps early. The current pass keeps existing UDP-centric behavior working while leaving a few advanced backend hooks intentionally stubbed or unsupported.Backend swap
turmoil-net-backed adapter under the existingbach::netAPI.UdpSocket::{bind, connect, send, send_to, recv, recv_from}semantics intact for current callers.turmoil_net::Nettopology.Compatibility layer
"server:8080".turmoil-netpackets into bach’s monitor packet shape sonet-monitorcallbacks continue to observe send/receive traffic.SendOptions.segment_len.Runtime / scope hardening
Intentional first-pass gaps
with_pcap_dirremains as a compatibility no-op for now.Example of the preserved public API shape: