Search Results for

    Show / Hide Table of Contents

    Class ContinuousResolver

    A convenience class that resolves streams continuously in the background throughout its lifetime and which can be queried at any time for the set of streams that are currently visible on the network.

    Inheritance
    Object
    CriticalFinalizerObject
    SafeHandle
    LSLObject
    ContinuousResolver
    Inherited Members
    LSLObject.Obj
    LSLObject.IsInvalid
    LSLObject.ReleaseHandle()
    Namespace: LSL4Unity
    Assembly: cs.temp.dll.dll
    Syntax
    public class ContinuousResolver : LSLObject, IDisposable

    Constructors

    ContinuousResolver(Double)

    Initializes a new instance of the ContinuousResolver class that resolves all streams on the network.

    This is analogous to the functionality offered by the free function .

    Declaration
    public ContinuousResolver(double forgetAfter = 5)
    Parameters
    Type Name Description
    Double forgetAfter

    When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.

    ContinuousResolver(String, Double)

    Initializes a new instance of the ContinuousResolver class that resolves all streams that match a given XPath 1.0 predicate.

    This is analogous to the functionality provided by the free function .

    Declaration
    public ContinuousResolver(string pred, double forgetAfter = 5)
    Parameters
    Type Name Description
    String pred

    The predicate string, e.g. "name='BioSemi'" or "type='EEG' and starts-with(name,'BioSemi') and count(info/desc/channel)=32"

    Double forgetAfter

    When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.

    ContinuousResolver(String, String, Double)

    Initializes a new instance of the ContinuousResolver class that resolves all streams with a specific value for a given property.

    This is analogous to the functionality provided by the free function .

    Declaration
    public ContinuousResolver(string prop, string value, double forgetAfter = 5)
    Parameters
    Type Name Description
    String prop

    The StreamInfo property that should have a specific value (e.g., "name", "type", "SourceId", or "desc/manufaturer").

    String value

    The string value that the property should have (e.g., "EEG" as the type property).

    Double forgetAfter

    When a stream is no longer visible on the network (e.g., because it was shut down), this is the time in seconds after which it is no longer reported by the resolver.

    Methods

    DestroyLSLObject(IntPtr)

    Declaration
    protected override void DestroyLSLObject(IntPtr obj)
    Parameters
    Type Name Description
    IntPtr obj
    Overrides
    LSLObject.DestroyLSLObject(IntPtr)

    Results()

    Obtain the set of currently present streams on the network (i.e. resolve result).

    Declaration
    public StreamInfo[] Results()
    Returns
    Type Description
    StreamInfo[]

    An array of matching stream info objects (excluding their meta-data), any of which can subsequently be used to open an inlet.

    In This Article
    • Constructors
      • ContinuousResolver(Double)
      • ContinuousResolver(String, Double)
      • ContinuousResolver(String, String, Double)
    • Methods
      • DestroyLSLObject(IntPtr)
      • Results()
    Back to top LSL 4 Unity documentation