Archived
3
0

Misc program, fix a wrong value (message type ERROR -> DATA).

This commit is contained in:
Philippe Pittoli 2022-12-25 22:18:33 +01:00
parent c7f48d21e4
commit e7c1c8b96d

View File

@ -16,7 +16,7 @@ fn send_msg(stream: net.Stream) !usize {
var fbs = std.io.fixedBufferStream(&buffer);
var writer = fbs.writer();
try writer.writeByte(1); // DATA
try writer.writeByte(2); // DATA
const message = "hello everyone";
try writer.writeIntBig(u32, message.len);