debugging the protocol

Simon Burton simon at arrowtheory.com
Thu Jun 14 15:47:49 PDT 2007


One thing I am curious about. The actual message body is not
null padded. This means when we get multiple messages from one
network read, we may get mis-aligned messages. In my code I detect
this situation and just copy the message to an 8-byte aligned
location. Wouldn't it make more sense to pad each message so
we don't have this problem ?

Simon.


More information about the dbus mailing list