mmstream_connect()

Updated: April 19, 2023

Connect to an mm-stream instance

Synopsis:

#include <mmstream/mmstream.h>
mmstream_instance_t mmstream_connect(const char *url)

Arguments:

url
A string with the URL of the instance to connect to (can be NULL)

Library:

libmmstream

Description:

This function connects to the mm-stream instance named url.

You can pass in NULL for this parameter to gain access to all instances. In this case, passing the returned handle into other API calls affects all mm-stream instances on the system.

Returns:

On success, an mmstream_instance_t object to use as a handle to the instance. On failure, MMSTREAM_INVALID_INSTANCE.