LSLApiConfig constructor

LSLApiConfig({
  1. int multicastPort = 16571,
  2. int basePort = 16572,
  3. int portRange = 32,
  4. IPv6Mode ipv6 = IPv6Mode.allow,
  5. ResolveScope resolveScope = ResolveScope.site,
  6. String? listenAddress,
  7. String? ipv6MulticastGroup,
  8. List<String> machineAddresses = const ['FF31:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2'],
  9. List<String> linkAddresses = const ['255.255.255.255', '224.0.0.183', 'FF02:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2'],
  10. List<String> siteAddresses = const ['239.255.172.215', 'FF05:113D:6FDD:2C17:A643:FFE2:1BD1:3CD2'],
  11. List<String> organizationAddresses = const [],
  12. List<String> globalAddresses = const [],
  13. List<String> addressesOverride = const [],
  14. int ttlOverride = -1,
  15. List<String> knownPeers = const [],
  16. String sessionId = 'default',
  17. double watchdogCheckInterval = 15.0,
  18. double watchdogTimeThreshold = 15.0,
  19. double multicastMinRTT = 0.5,
  20. double multicastMaxRTT = 3.0,
  21. double unicastMinRTT = 0.75,
  22. double unicastMaxRTT = 5.0,
  23. double continuousResolveInterval = 0.5,
  24. double timerResolution = 1.0,
  25. int maxCachedQueries = 100,
  26. double timeUpdateInterval = 2.0,
  27. int timeUpdateMinProbes = 6,
  28. int timeProbeCount = 8,
  29. double timeProbeInterval = 0.064,
  30. double timeProbeMaxRTT = 0.128,
  31. int outletBufferReserveMs = 5000,
  32. int outletBufferReserveSamples = 128,
  33. int sendSocketBufferSize = 0,
  34. int inletBufferReserveMs = 5000,
  35. int inletBufferReserveSamples = 128,
  36. int receiveSocketBufferSize = 0,
  37. double smoothingHalftime = 90.0,
  38. bool forceDefaultTimestamps = false,
  39. int logLevel = -2,
  40. 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,
});