# Input to IPC network packets. buffer = Bytes.new 1_000_000 while true len = STDIN.read buffer break if len == 0 STDOUT.write_bytes len, IO::ByteFormat::BigEndian STDOUT.write buffer[0.. len -1] end