Skip to content

0.9.5

Latest

Choose a tag to compare

@lhoward lhoward released this 20 Nov 00:22
· 6 commits to main since this release

Highlights

  • Class manager: devices describe their classes and datatypes in the shape of the AES70-2 model, with names, flags, deprecations and documentation. New SwiftOCAXMI / SwiftOCAXMIDevice libraries read and write the model as XMI, check a device against the AES70-2 XMI, and serve it over HTTP (ModelURL). hidden: true keeps a property or method out of introspection.
  • Device hardening: notifications are queued per controller rather than awaited, so one stalled peer no longer blocks the rest; subscriptions are de-duplicated and capped at 4096 per controller; TCP keepalive and a 60 s datagram heartbeat clamp expire dead peers; at most 64 datagram controllers per endpoint.
  • AES70-21 (draft 2026-10-09): MediaStreamSDP (from SwiftNMOS), SDP streams identified by <ssrc-id>, media descriptions selected by MediaIDType / MediaID; ConfigureEndpointFromSDP leaves the endpoint Ready.

Source-breaking changes

  • OcaONo is a distinct struct rather than a UInt32 typealias (wire formats unchanged)
  • Properties renamed to match AES70: OcaDeviceManager.ocaVersion and controlEnabled, OcaSensor.readingState, OcaStateSensor.state, OcaNetworkInterface.activeNetworkSettings / targetNetworkSettings / networkSettingsPending, OcaMediaClockManager.clockSourceTypesSupported, OcaSwitch.positionEnableFlags; OcaPort and OcaPortID fields likewise
  • OcaTimeInterval, OcaDBr and the time enumerations are coded as AES70 does; OcaMultiMap marshals one map item per value
  • OcaController requires AnyObject & Sendable rather than Actor
  • streamLegs removed: every multistream registry entry names its media description
  • Requires IORingSwift 2.3.0 and SQLite.swift 0.17; SIGPIPE is no longer ignored on Linux

New features

  • GetSignalPathsRecursive, with a controller-side fallback for devices that lack it
  • GetDatasetSizes on a device's dataset
  • Role-path search descends through blocks
  • OcaLocalDeviceEndpoint takes raw PDUs (deliver(request:) / responses) for controllers outside Swift
  • DNS-SD services are advertised only on interfaces where the endpoint can be reached; runDNSServiceRegistrar (SPI) advertises other service types under the device's name
  • OcaCounterNotifier emits CounterUpdate
  • Property, method and event IDs parse in AES70's lettered form
  • Public: OcaClassID fields, OcaDevice.objects, OcaConnection.connectionID. SPI: the OCP.1 PDU codec, stream PDU reader and Ocp2Naming
  • Builds with the NonEmbeddedBuild trait disabled; Windows is built and tested in CI

Fixes

  • A nil property answers null over OCP.2 and parameterOutOfRange over OCP.1, rather than failing to encode
  • A subscriber context longer than the advertised maximum is refused
  • LockWait waiters always end, and reply according to the recorded grant
  • FlyingSocks and Network stream reads no longer time out
  • io_uring controller sockets are shut down on close
  • CFSocket set(flags:mask:) and O_NONBLOCK sense corrected
  • Mach port rights are destroyed with mach_port_destruct
  • Endpoint counter sets are keyed by the whole endpoint ID