co_error co_stream_write(co_stream stream, const void *buffer, size_t buffersize);
This function writes a data packet to a previously opened stream. This function must be called from within a process run function.
The arguments for co_stream_write are as follows:
Possible return values are listed, with the resulting value of co_errno shown in parentheses:
The co_stream_write function must be used only on streams that have been opened with mode O_WRONLY.
The co_stream_write function blocks (waits) if the output stream is already full.