v2.0.0
Loading...
Searching...
No Matches
stream_discovery.h
Go to the documentation of this file.
1//=============================================================================================================
34
35#ifndef LSL_STREAM_DISCOVERY_H
36#define LSL_STREAM_DISCOVERY_H
37
38//=============================================================================================================
39// INCLUDES
40//=============================================================================================================
41
42#include "lsl_global.h"
43#include "stream_info.h"
44
45//=============================================================================================================
46// STL INCLUDES
47//=============================================================================================================
48
49#include <vector>
50#include <string>
51
52//=============================================================================================================
53// DEFINE NAMESPACE lsl
54//=============================================================================================================
55
56namespace LSLLIB {
57
58//=============================================================================================================
68LSLSHARED_EXPORT std::vector<stream_info> resolve_streams(double timeout = 1.0);
69
70//=============================================================================================================
82LSLSHARED_EXPORT std::vector<stream_info> resolve_stream(const std::string& prop,
83 const std::string& value,
84 double timeout = 1.0);
85
86} // namespace LSLLIB
87
88#endif // LSL_STREAM_DISCOVERY_H
Contains the declaration of the stream_info class.
lsl library export/import macros.
#define LSLSHARED_EXPORT
Definition lsl_global.h:55
Lab Streaming Layer (LSL) integration for real-time data exchange.
std::vector< stream_info > resolve_streams(double timeout=1.0)
Resolve all streams currently available on the network.
std::vector< stream_info > resolve_stream(const std::string &prop, const std::string &value, double timeout=1.0)
Resolve streams by a specific property value.