diff options
| author | Robby Zambito <contact@robbyzambito.me> | 2026-01-24 16:13:35 -0500 |
|---|---|---|
| committer | Robby Zambito <contact@robbyzambito.me> | 2026-01-24 17:16:06 -0500 |
| commit | 16fd65e281776bd27d9aefdcfb39fa8b8f7a9fba (patch) | |
| tree | de77af954753512ccca8d030f8637048696ef4b6 /src/Connection.zig | |
| parent | 8965a4d5d4ce494ae45ea28186379ea7aea9d2e1 (diff) | |
Add C API
Diffstat (limited to 'src/Connection.zig')
| -rw-r--r-- | src/Connection.zig | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Connection.zig b/src/Connection.zig index 95805de..cdeb57e 100644 --- a/src/Connection.zig +++ b/src/Connection.zig @@ -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", .{}); |
