Add C API

This commit is contained in:
2026-01-24 16:13:35 -05:00
parent 8965a4d5d4
commit 16fd65e281
5 changed files with 144 additions and 0 deletions

View File

@@ -12,6 +12,10 @@ pub fn init(socket: RawSocket, headers: EthIpUdp, connection: SaprusMessage) Con
};
}
pub fn deinit(self: *Connection) void {
self.socket.deinit();
}
pub fn next(self: Connection, io: Io, buf: []u8) ![]const u8 {
_ = io;
log.debug("Awaiting connection message", .{});