Obsolete
/
libipc-old
Archived
3
0
Fork 0

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

master
Philippe Pittoli 2022-12-25 22:18:33 +01:00
parent c7f48d21e4
commit e7c1c8b96d
1 changed files with 1 additions and 1 deletions

View File

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