Padding at the end of message body?
marcin at saepia.net
marcin at saepia.net
Mon May 30 21:04:51 UTC 2016
Hello Jean,
thank you for the hint. I am aware of these erlang bindings but attempt to
use them was exactly the reason why I've decided to write new
implementation from scratch :)
They poorly integrate with Elixir apps (they have dependencies that force
to use two separate build systems while 99,9% of Elixir projects depend on
one of them), they introduce non-native dependencies to handle UNIX domain
sockets and they have quite poor documentation. I've encountered also some
unhandled exceptions and matches while trying to do really basic
operations, they appear to be unmaintained. I've been thinking whether it's
better to improve them or write something in Elixir, and I've chosen the
second way.
m.
2016-05-30 21:57 GMT+02:00 Jean Parpaillon <jean.parpaillon at free.fr>:
> HI,
> fyi, you can find a pure erlang implementation of D-Bus at:
> https://github.com/lizenn/erlang-dbus/
>
> Parsing/serializing is done in the dbus_marshaller module.
>
>
> Regards,
> Jean
>
> Le lundi 30 mai 2016 à 20:56 +0100, Simon McVittie a écrit :
> > On 30/05/16 18:14, marcin at saepia.net wrote:
> > > The message sometimes contains a bunch of null bytes after the body
> > ...
> > > The specification says "The message body need not end on an 8-byte
> > > boundary." but "need not" does not equal "must not".
> >
> > Please check how the reference implementation (libdbus) would
> > interpret
> > those bytes: as an accepted-and-discarded part of the message you
> > have
> > quoted, as padding between messages, or as part of the next message.
> > Whichever interpretation it would use, you can consider that to be
> > correct. A patch to dbus-specification.xml contributed via
> > <https://bugs.freedesktop.org/enter_bug.cgi?product=dbus&component=co
> > re>
> > clarifying which one is meant would also be appreciated.
> >
> > The reference dbus-daemon will usually disconnect clients that send
> > anything that is considered malformed. If it doesn't, either that
> > content is not considered malformed, or the reference dbus-daemon has
> > a bug.
> >
> --
> Jean Parpaillon
> --
> Open Source Consultant
> Director @ OW2 Consortium
> OCCIware Strategic Orientation Committee Chairman
> Research Engineer @ Inria
> --
> Phone: +33 6 30 10 92 86
> im: jean.parpaillon at gmail.com
> skype: jean.parpaillon
> linkedin: http://www.linkedin.com/in/jeanparpaillon/en
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/dbus
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dbus/attachments/20160530/d7f0aff3/attachment.html>
More information about the dbus
mailing list