klyn.process.ProcessChannel.writeBytes
method
public writeBytes(notnull buffer as Byte[], offset as Long = 0l, length as Long = -1l, timeout as ULong = 30000ul) as Void
Description

Writes the entire byte range to stdin, preserving NUL and line endings. Calls are serialized so concurrently written protocol frames do not mix.

Parameters
ParameterDescription
timeoutOverall deadline in milliseconds; 0 means no deadline.
Throws
  • IOException on close, timeout, broken stdin or an OS write error. A failed write may have sent a prefix; abandon the protocol connection.
  • IndexException for an invalid buffer range.
Example

channel.writeBytes(headerAndBody, timeout=5000ul)