LSLApiConfig constructor
LSLApiConfig({
- int multicastPort = 16571,
- int basePort = 16572,
- int portRange = 32,
- IPv6Mode ipv6 = IPv6Mode.allow,
- ResolveScope resolveScope = ResolveScope.site,
- String? listenAddress,
- String? ipv6MulticastGroup,
- List<
String> machineAddresses = const ['FF31:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2'], - List<
String> linkAddresses = const ['255.255.255.255', '224.0.0.183', 'FF02:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2'], - List<
String> siteAddresses = const ['239.255.172.215', 'FF05:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2'], - List<
String> organizationAddresses = const [], - List<
String> globalAddresses = const [], - List<
String> addressesOverride = const [], - int ttlOverride = -1,
- List<
String> knownPeers = const [], - String sessionId = 'default',
- double watchdogCheckInterval = 15.0,
- double watchdogTimeThreshold = 15.0,
- double multicastMinRTT = 0.5,
- double multicastMaxRTT = 3.0,
- double unicastMinRTT = 0.75,
- double unicastMaxRTT = 5.0,
- double continuousResolveInterval = 0.5,
- double timerResolution = 1.0,
- int maxCachedQueries = 100,
- double timeUpdateInterval = 2.0,
- int timeUpdateMinProbes = 6,
- int timeProbeCount = 8,
- double timeProbeInterval = 0.064,
- double timeProbeMaxRTT = 0.128,
- int outletBufferReserveMs = 5000,
- int outletBufferReserveSamples = 128,
- int sendSocketBufferSize = 0,
- int inletBufferReserveMs = 5000,
- int inletBufferReserveSamples = 128,
- int receiveSocketBufferSize = 0,
- double smoothingHalftime = 90.0,
- bool forceDefaultTimestamps = false,
- int logLevel = -2,
- String? logFile,
Constructor with default values matching the default LSL configuration
Implementation
LSLApiConfig({
// Ports section
this.multicastPort = 16571,
this.basePort = 16572,
this.portRange = 32,
this.ipv6 = IPv6Mode.allow,
// Multicast section
this.resolveScope = ResolveScope.site,
this.listenAddress,
this.ipv6MulticastGroup,
this.machineAddresses = const ['FF31:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2'],
this.linkAddresses = const [
'255.255.255.255',
'224.0.0.183',
'FF02:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2',
],
this.siteAddresses = const [
'239.255.172.215',
'FF05:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2',
],
this.organizationAddresses = const [],
this.globalAddresses = const [],
this.addressesOverride = const [],
this.ttlOverride = -1,
// Lab section
this.knownPeers = const [],
this.sessionId = 'default',
// Tuning section
this.watchdogCheckInterval = 15.0,
this.watchdogTimeThreshold = 15.0,
this.multicastMinRTT = 0.5,
this.multicastMaxRTT = 3.0,
this.unicastMinRTT = 0.75,
this.unicastMaxRTT = 5.0,
this.continuousResolveInterval = 0.5,
this.timerResolution = 1.0,
this.maxCachedQueries = 100,
this.timeUpdateInterval = 2.0,
this.timeUpdateMinProbes = 6,
this.timeProbeCount = 8,
this.timeProbeInterval = 0.064,
this.timeProbeMaxRTT = 0.128,
this.outletBufferReserveMs = 5000,
this.outletBufferReserveSamples = 128,
this.sendSocketBufferSize = 0,
this.inletBufferReserveMs = 5000,
this.inletBufferReserveSamples = 128,
this.receiveSocketBufferSize = 0,
this.smoothingHalftime = 90.0,
this.forceDefaultTimestamps = false,
// Log section
this.logLevel = -2,
this.logFile,
});