Receive msg example: remove a debug message.
parent
6038a277f3
commit
3b7203c58d
|
@ -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);
|
||||||
|
|
Reference in New Issue