input2ipc: loop over input.
parent
1435515898
commit
39fc84934d
|
@ -1,5 +1,7 @@
|
||||||
# Input to IPC network packets.
|
# Input to IPC network packets.
|
||||||
buffer = Bytes.new 1_000_000
|
buffer = Bytes.new 1_000_000
|
||||||
|
while true
|
||||||
len = STDIN.read buffer
|
len = STDIN.read buffer
|
||||||
STDOUT.write_bytes len, IO::ByteFormat::BigEndian
|
STDOUT.write_bytes len, IO::ByteFormat::BigEndian
|
||||||
STDOUT.write buffer[0.. len -1]
|
STDOUT.write buffer[0.. len -1]
|
||||||
|
end
|
||||||
|
|
Loading…
Reference in New Issue