Request for the 1.0 release
Thiago Macieira
thiago.macieira at trolltech.com
Sat Feb 25 16:03:15 PST 2006
Havoc Pennington wrote:
>1) If you are willing to always do blocking writes (or know you will be
>blocking in a particular case), we don't need in theory need to allocate
>and copy into a DBusMessage; we could just marshal data into the socket
>directly.
Are you sure this is possible, considering the signature is stored in the
header?
If I read this strace dump of the server, it wouldn't be possible:
writev(8,
[{"l\1\0\0012\0\0\0\24\0\0\0\217\0\0\0\1\1o\0\21\0\0\0/org/kde/selftest\0\0\0\0\0\0\0\6\1s\0\20\0\0\0org.kde.selftest\0\0\0\0\0\0\0\0\2\1s\0\20\0\0\0org.kde.selftest\0\0\0\0\0\0\0\0\3\1s\0\4\0\0\0ping\0\0\0\0\10\1g\0\4aaay\0\0\0\0\0\0\0\7\1s\0\6\0\0\0:1.161\0\0",
160}, {".
\0\0\0\22\0\0\0\5\0\0\0test1\0\0\0\2\0\0\0t2\0\0\22\0\0\0\5\0\0\0test1\0\0\0\2\0\0\0t2",
50}], 2) = 210
Note the "aaay" part in the first vector of the syscall.
>This makes it harder since you have to walk over the args and compute
>what the length of the message will be, then go back and write out the
>args.
Not to mention getting the alignment right.
--
Thiago José Macieira - thiago.macieira AT trolltech.com
Trolltech AS - Sandakerveien 116, NO-0402 Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060226/6879caa2/attachment.pgp
More information about the dbus
mailing list