I've been working on some socket stuff recently, and can't figure out how to send messages over the writer. I've connected to it and just haven't been able to figure this out, i've not been working with Zig for long, so hoping to get some help
This is my super sophisticated code.
const std = @import("std");
const unix = std.Io.net.UnixAddress;
pub fn main() !void {
const alloc = std.heap.page_allocator;
var arena = std.heap.ArenaAllocator.init(alloc);
const allocator = arena.allocator();
var threaded_io: std.Io.Threaded = .init(allocator, .{});
const iio: std.Io = threaded_io.io();
const addr_value: unix = .{ .path = "/tmp/temp.socket" };
const addr: *const unix = &addr_value;
const stream = try std.Io.net.UnixAddress.connect(addr, iio);
var writeBuffer: [1024]u8 = undefined;
const writer = stream.writer(iio, &writeBuffer);
_ = writer;
}