Obsolete
/
libipc-old
Archived
3
0
Fork 0

Receive msg example: remove a debug message.

master
Philippe Pittoli 2022-12-21 23:55:06 +01:00
parent 6038a277f3
commit 3b7203c58d
1 changed files with 1 additions and 2 deletions

View File

@ -30,8 +30,7 @@ fn receive_msg(stream: net.Stream) !void {
var fbs = std.io.fixedBufferStream(&buffer); var fbs = std.io.fixedBufferStream(&buffer);
var reader = fbs.reader(); var reader = fbs.reader();
var size = try stream.read(buffer[0..]); _ = try stream.read(buffer[0..]);
print ("Received a message! Read {} bytes\n", .{size});
const msg_type = try reader.readByte(); const msg_type = try reader.readByte();
const msg_len = try reader.readIntBig(u32); const msg_len = try reader.readIntBig(u32);