diff options
author | Robby Zambito <contact@robbyzambito.me> | 2025-04-27 18:00:37 -0400 |
---|---|---|
committer | Robby Zambito <contact@robbyzambito.me> | 2025-05-10 21:46:53 -0400 |
commit | 1731b2e6432f7c3b07e8a74bcc730092a89be84f (patch) | |
tree | 28d779a614aea531235f4d14ab60e66b9db8b507 | |
parent | dae66a0039fb21fb2c364b361c624123f225e051 (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; |