Cause a stream to become a consumer endpoint to another stream
#include <screen/screen.h>
int screen_consume_stream_buffers(screen_stream_t stream, int count, screen_stream_t producer)
Function Type: Flushing Execution
This function is used when the consumer of a stream is in a different process. The function causes the local stream handle to have access to the same buffers as the remote stream. It also connects the local stream as a consumer endpoint of the remote stream.
0 if successful, or -1 if an error occurred (errno is set; refer to errno.h for more details).