Skip to main content

Module config

Module config 

Source
Expand description

The configuration file.

liblsl reads one file at the first call that needs it, keeps the result for the life of the process, and never reads another (src/api_config.cpp:326-337). Every port, every multicast group, and every tuning value below comes from that file or from a default.

A site that changes lsl_api.cfg changes the wire. Two libraries that read the file differently cannot see each other, and no test of the protocol finds that, because both sides are correct on their own defaults.

Structs§

Config
Every value that changes what travels on the wire.
Ini
A file in the format that liblsl reads.

Enums§

FallbackDiscovery
When fallback discovery runs after multicast finds no stream. labstream.FallbackDiscovery. docs/discovery.md.

Functions§

get
The configuration of this process.
set_content
Give the configuration as text. Call this before anything else.
set_filename
Name the file to read. Call this before anything else.