[][src]Function lsl_sys::lsl_resolve_all

pub unsafe extern "C" fn lsl_resolve_all(
    buffer: *mut lsl_streaminfo,
    buffer_elements: u32,
    wait_time: f64
) -> i32

Resolve all streams on the network.

This function returns all currently available streams from any outlet on the network. The network is usually the subnet specified at the local router, but may also include a multicast group of machines (given that the network supports it), or a list of hostnames.
These details may optionally be customized by the experimenter in a configuration file (see page Network Connectivity in the LSL wiki). This is the default mechanism used by the browsing programs and the recording program. @param[out] buffer A user-allocated buffer to hold the resolve results. @attention It is the user's responsibility to either destroy the resulting streaminfo objects or to pass them back to the LSL during during creation of an inlet.

@attention The stream_info's returned by the resolver are only short versions that do not include the lsl_get_desc() field (which can be arbitrarily big). To obtain the full stream information you need to call lsl_get_info() on the inlet after you have created one. @param buffer_elements The user-provided buffer length. @param wait_time The waiting time for the operation, in seconds, to search for streams. The recommended wait time is 1 second (or 2 for a busy and large recording operation). @warning If this is too short (<0.5s) only a subset (or none) of the outlets that are present on the network may be returned. @return The number of results written into the buffer (never more than the provided # of slots) or a negative number if an error has occurred (values corresponding to lsl_error_code_t).