mirror of
https://git.robbyzambito.me/zaprus
synced 2025-12-20 16:24:50 +00:00
Nicer message for no response
This commit is contained in:
@@ -40,7 +40,7 @@ pub fn main() !void {
|
||||
if (res) |r| {
|
||||
std.debug.print("{s}\n", .{r.connection.payload});
|
||||
} else {
|
||||
std.debug.print("null\n", .{});
|
||||
std.debug.print("No response from connection request\n", .{});
|
||||
}
|
||||
|
||||
// try Saprus.sendRelay(if (message.items.len > 0) message.items else "Hello darkness my old friend", gpa);
|
||||
|
||||
@@ -66,9 +66,6 @@ pub fn sendInitialConnection(payload: []const u8, initial_port: u16, allocator:
|
||||
.header = .{
|
||||
.src_port = initial_port,
|
||||
.dest_port = dest_port,
|
||||
.seq_num = 1,
|
||||
.msg_id = 2,
|
||||
.reserved = 5,
|
||||
},
|
||||
.payload = payload,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user