Arrange bytes for relay

This commit is contained in:
2026-01-18 19:36:50 -05:00
parent 8a53c7366a
commit 9947c21b4c
2 changed files with 145 additions and 72 deletions

View File

@@ -22,6 +22,12 @@ pub const Message = union(PacketType) {
pub const Relay = message.Relay;
pub const Connection = message.Connection;
pub fn toBytes(self: message.Message, buf: []u8) []u8 {
return switch (self) {
inline else => |m| m.toBytes(buf),
};
}
};
pub const relay_dest_len = 4;