UnixConnection.onDataWithDescriptors

void onDataWithDescriptors(DataWithDescriptorsCallback callback) @property @trusted

Set the descriptor-aware inbound data callback.

Installing this callback replaces the bytes-only onData callback for dispatch: every received chunk is delivered to exactly one callback, preferring this one, so both are never invoked for the same bytes. The descriptors batch is a scoped reference valid only during the call; claim descriptors with ReceivedDescriptors.take to keep them, unclaimed ones are closed when the callback returns.

Parameters

callbackCallback invoked when data (and possibly descriptors) is received.