[Spice-devel] [PATCH spice-protocolwq 0/2] Removing sub_list & serial from messages header
yhalperi at redhat.com
Sun Jan 8 01:22:26 PST 2012
This patch series introduces SPICE_COMMON_CAP_MINI_HEADER, in order to spare
the 12 bytes of sub_list & serial that were sent for all the messages. It replaces
the previous patch series that removed only the sub_list.
I implemented the sub_list functionality by using an additional
marshaller in red_channel, which I named urgent marshaller. This
marshaller allows marshalling messages that we find out we need to send
in the middle of marshalling another message (and we need to send them before it).
In addition, I introduce the msg type SPICE_MSG_LIST, for cases that the "urgent" message
is composed of several messages, and for future use, in case we wish to aggregate
several messages together.
As Alon noticed, the functionally of sending the serial can be replaced by
increasing a counter on the server and client each time a message is sent/received.
The spice-protocol patches will be followed by patches for the server and spice-gtk.
Yonit Halperin (2):
Add support for mini header: an header without sub list & without
NEWS | 4 ++++
configure.ac | 4 ++--
spice/enums.h | 1 +
spice/protocol.h | 8 +++++++-
4 files changed, 14 insertions(+), 3 deletions(-)
More information about the Spice-devel