sccn / labstreaminglayer

LabStreamingLayer super repository comprising submodules for LSL and associated apps.
Other
560 stars 165 forks source link

Data from udp #81

Closed arhampk09 closed 3 years ago

arhampk09 commented 3 years ago

can someone tell me how to receive network data (ex. data from UDP port) data using liblsl?

agricolab commented 3 years ago

liblsl is a protocol for streaming data, and itself based on UDP and TCP. It is not a generic toolbox for network interfacing.

I assume you are talking about a data stream from a measurement device, which is sent and received via UDP. You now want to broadcast or forward with LSL. In that case, the implementation depends on your choices, and can be done in C or many wrapper languages for liblsl. You need code to interface with the UDP and additional code to translate into the LSL protocol and publish it there.

if that's not your use case, please add some more details.