mirror of
https://git.robbyzambito.me/zaprus
synced 2025-12-21 00:34:50 +00:00
Not using writer
Use direct mem copying into the buf instead of writing to it with the writer interface. Probably better to use the writer actually, since this suffers from the same issue with the extra two null bytes.
This commit is contained in:
@@ -51,10 +51,10 @@ pub fn sendInitialConnection(payload: []const u8, initial_port: u16, allocator:
|
||||
.seq_num = 1,
|
||||
.msg_id = 2,
|
||||
.reserved = 5,
|
||||
.options = .{
|
||||
.opt2 = true,
|
||||
.opt8 = true,
|
||||
},
|
||||
// .options = .{
|
||||
// .opt2 = true,
|
||||
// .opt8 = true,
|
||||
// },
|
||||
},
|
||||
.payload = payload,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user