roar_stream_add_data3
Adds data to a stream's input buffer using the control connection
Usage
#include <roaraudio.h>
int roar_stream_add_data(struct roar_connection * con, struct roar_stream * s, char * data, size_t len);
Overview
This adds data to the input buffer of a stream. It's like doing some thing like this:
write(stream_fh, data, len);
but uses the control channel to add the data.
Parameters
|
The connection to the server. |
|---|---|
|
The stream to add data to it's input buffer. |
|
The data to add to the buffer. |
|
The length of the data to be added. |
Return value
On success these calls return 0. On error, -1 is returned.
Examples
FIXME
Releases
6 releases since Debian 6.0 (Squeeze); the text changed 2 times.