co_error co_stream_read(co_stream stream, void *buffer, size_t buffersize);
This function reads a data packet from a previously opened stream. This function must be called from within a process run function.
The arguments for co_stream_read are as follows:
Possible return values are listed, with the resulting value of co_errno shown in parentheses:
The co_stream_read function must be used only on streams that have been opened with mode O_RDONLY.
The co_stream_read function blocks (waits) if the stream is empty or until the writer closes the stream.