Misc program, fix a wrong value (message type ERROR -> DATA).
parent
c7f48d21e4
commit
e7c1c8b96d
|
@ -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);
|
||||||
|
|
Reference in New Issue