doing some shenanigans

trying to start writing my own function to do raw socket connections
This commit is contained in:
2026-01-10 21:17:23 -05:00
parent b39603522f
commit 7a8874ea6a
2 changed files with 27 additions and 2 deletions

View File

@@ -82,8 +82,8 @@ fn parseDest(in: ?[]const u8) [4]u8 {
return res;
}
const addr = std.net.Ip4Address.parse(dest, 0) catch return "FAIL".*;
return @bitCast(addr.sa.addr);
const addr = std.Io.net.Ip4Address.parse(dest, 0) catch return "FAIL".*;
return addr.bytes;
}
return "zap\x00".*;
}