summaryrefslogtreecommitdiff
path: root/src/ninep/screen.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-04 23:13:41 -0300
committerGabriel Schneider <[email protected]>2026-11-05 00:58:19 -0300
commit1e1212c86a13d3087a5db61e9f2a28cfcba4cc45 (patch)
treeff355c2d86482e1d21280fca2fc0fade773aa6c8 /src/ninep/screen.zig
parent6a665eb3d9b6542bc1765f57f19cd2fc8ce04e82 (diff)
downloadpardes-1e1212c86a13d3087a5db61e9f2a28cfcba4cc45.tar.gz
pardes-1e1212c86a13d3087a5db61e9f2a28cfcba4cc45.zip
9p_io, build: 9P over QUIC is gone: src/9p_quic.zig, the Listener's poll path on the editor's thread (its accept, fill, flush and watcher thread), the Client's quic! dials, -Dquic with its OpenSSL linking, the quic-test step that ran no test, Namespace.quic_address and /listeners' quic row, the QUIC process case, the perf baselines' quic key and every mention in the docs; main.zig still parses --9p-quic until the processes change takes it out, so 9p_io.quic_enabled stays, false, until then
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'src/ninep/screen.zig')
-rw-r--r--src/ninep/screen.zig18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/ninep/screen.zig b/src/ninep/screen.zig
index ba676ded..22129546 100644
--- a/src/ninep/screen.zig
+++ b/src/ninep/screen.zig
@@ -63,15 +63,10 @@ pub fn listenersText(p: *Pardes, buf: []u8) []const u8 {
var text = std.Io.Writer.fixed(buf);
if (p.fs.socket_path.len != 0)
text.print("unix!{s}\n", .{p.fs.socket_path}) catch return text.buffered();
- for ([_]?std.Io.net.IpAddress{ p.fs.tcp_address, p.fs.quic_address }, [_][]const u8{ "tcp", "quic" }) |maybe, transport| {
- const address = maybe orelse continue;
- switch (address) {
- .ip4 => |ip| text.print("{s}!{d}.{d}.{d}.{d}!{d}\n", .{ transport, ip.bytes[0], ip.bytes[1], ip.bytes[2], ip.bytes[3], ip.port }) catch
- return text.buffered(),
- .ip6 => |ip| text.print("{s}!{f}!{d}\n", .{ transport, std.Io.net.Ip6Address.Unresolved{ .bytes = ip.bytes, .interface_name = null }, ip.port }) catch
- return text.buffered(),
- }
- }
+ if (p.fs.tcp_address) |address| switch (address) {
+ .ip4 => |ip| text.print("tcp!{d}.{d}.{d}.{d}!{d}\n", .{ ip.bytes[0], ip.bytes[1], ip.bytes[2], ip.bytes[3], ip.port }) catch {},
+ .ip6 => |ip| text.print("tcp!{f}!{d}\n", .{ std.Io.net.Ip6Address.Unresolved{ .bytes = ip.bytes, .interface_name = null }, ip.port }) catch {},
+ };
return text.buffered();
}
@@ -102,9 +97,8 @@ test "listener addresses are readable canonical dials with bounded partial reads
const p = try Pardes.init(gpa, .{ .tty_only = true });
defer p.deinit();
p.fs.socket_path = "/tmp/a socket.sock";
- p.fs.tcp_address = .{ .ip4 = .loopback(5640) };
- p.fs.quic_address = .{ .ip6 = .loopback(5641) };
- const expected = "unix!/tmp/a socket.sock\ntcp!127.0.0.1!5640\nquic!::1!5641\n";
+ p.fs.tcp_address = .{ .ip6 = .loopback(5641) };
+ const expected = "unix!/tmp/a socket.sock\ntcp!::1!5641\n";
for ([_][]const u8{ "/virtual/listeners", "/n/self/listeners" }) |path| {
const bytes = try fs.read(p, path);
defer gpa.free(bytes);