≈ the.bay.news

std.Io: unexpected errno: 107

Ziggit
std.Io: unexpected errno: 107
Hi! I am making a small http server executable as a personal utility, and this is the code (its messy and probably slow): const std = @import("std"); const index_path = "index.html"; const not_found_path = "404.html"; pub fn main(init: std.process.Init) !void { var arena_allocator: std.heap.ArenaAllocator = .init(init.gpa); const arena = arena_allocator.allocator(); var it = try init.minimal.args.iterateAllocator(arena); _ = it.next(); const ip = it.next() orelse "127.0....

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.