[systemd-devel] KDBus Signals and Timeouts

Kay Sievers kay at vrfy.org
Tue Feb 25 10:41:12 PST 2014


On Tue, Feb 25, 2014 at 7:25 PM, Simon McVittie
<simon.mcvittie at collabora.co.uk> wrote:
> On 25/02/14 17:30, Kay Sievers wrote:
>> There is not real difference, everything is just a message, being a
>> signal or a method. Only signals are limited to pure copied data,
>> disallowing fds; therefore signals will not be suitable for really
>> large data.
>
> D-Bus allows unicast signals (libdbus API: non-NULL destination). Does
> kdbus distinguish between methods and (broadcast or unicast) signals, or
> is the distinction actually between unicast (method, signal or reply)
> messages and broadcast signals?
>
> If the distinction is between unicast and broadcast, this seems a good
> simplification.

We only allow sending of fds to a specific connection, it checks:
  if (msg->dst_id == KDBUS_DST_ID_BROADCAST)
    return -ENOTUNIQ;

The type of message does not matter.

Kay


More information about the systemd-devel mailing list