Major restructuring

This makes things much easier to use as a library
This commit is contained in:
2026-01-06 21:56:39 -05:00
parent cc03631838
commit 4896928352
7 changed files with 648 additions and 694 deletions

View File

@@ -1,4 +1,5 @@
const Message = @import("message_parser.zig").Message;
const parse = @import("parse.zig");
const Message = parse.Message;
const std = @import("std");
const Queue = std.Io.Queue;
@@ -193,7 +194,7 @@ test send {
}
pub fn next(self: *Client, allocator: std.mem.Allocator) !Message {
return Message.next(allocator, self.from_client);
return parse.next(allocator, self.from_client);
}
test next {