diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-04-27 18:00:37 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-04-27 18:03:06 -0400 |
commit | 18b04364df2829a7e30e5831e499005a1ecc24c7 (patch) | |
tree | 28d779a614aea531235f4d14ab60e66b9db8b507 | |
parent | cc8438448d3e093d0aabf52d97e11a6514a82765 (diff) |
-rw-r--r-- | build.zig | 1 | ||||
-rw-r--r-- | src/Client.zig | 4 |
2 files changed, 5 insertions, 0 deletions
@@ -33,6 +33,7 @@ pub fn build(b: *std.Build) void { }); lib_mod.addImport("network", b.dependency("network", .{}).module("network")); + lib_mod.addImport("gatorcat", b.dependency("gatorcat", .{}).module("gatorcat")); exe_mod.addImport("zaprus", lib_mod); exe_mod.addImport("clap", b.dependency("clap", .{}).module("clap")); diff --git a/src/Client.zig b/src/Client.zig index c518c74..0d7a851 100644 --- a/src/Client.zig +++ b/src/Client.zig @@ -77,6 +77,9 @@ pub fn sendInitialConnection(payload: []const u8, initial_port: u16, allocator: } pub fn connect(payload: []const u8, allocator: Allocator) !?SaprusConnection { + var foo: gcat.nic.RawSocket = try .init("enp7s0"); + defer foo.deinit(); + // _ = gcat.nic.RawSocket; var initial_port: u16 = 0; if (rand) |r| { initial_port = r.intRangeAtMost(u16, 1024, 65000); @@ -124,5 +127,6 @@ const posix = std.posix; const mem = std.mem; const network = @import("network"); +const gcat = @import("gatorcat"); const Allocator = mem.Allocator; |