[Spice-devel] [PATCH v2 spice-protocol 2/2] Add qos related messages
Yonit Halperin
yhalperi at redhat.com
Tue Apr 17 03:11:42 PDT 2012
If the client's channel has SPICE_COMMON_CAP_QOS_QUERY,
the server's channel can send SPICE_MSG_QOS_QUERY to the client.
In response, the client is expected to send back SPICE_MSG_QOS_ACK
immediately after it receives the message following the query, and
before handling this message. The server can deduce
the network condition using the ack arrival time.
---
spice/enums.h | 2 ++
spice/protocol.h | 1 +
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/spice/enums.h b/spice/enums.h
index 802e1ee..601d799 100644
--- a/spice/enums.h
+++ b/spice/enums.h
@@ -343,6 +343,7 @@ enum {
SPICE_MSG_DISCONNECTING,
SPICE_MSG_NOTIFY,
SPICE_MSG_LIST,
+ SPICE_MSG_QOS_QUERY,
};
enum {
@@ -352,6 +353,7 @@ enum {
SPICE_MSGC_MIGRATE_FLUSH_MARK,
SPICE_MSGC_MIGRATE_DATA,
SPICE_MSGC_DISCONNECTING,
+ SPICE_MSGC_QOS_ACK,
};
enum {
diff --git a/spice/protocol.h b/spice/protocol.h
index ceba2a1..2ee551a 100644
--- a/spice/protocol.h
+++ b/spice/protocol.h
@@ -56,6 +56,7 @@ enum {
SPICE_COMMON_CAP_AUTH_SPICE,
SPICE_COMMON_CAP_AUTH_SASL,
SPICE_COMMON_CAP_MINI_HEADER,
+ SPICE_COMMON_CAP_QOS_QUERY,
};
typedef struct SPICE_ATTR_PACKED SpiceLinkMess {
--
1.7.7.6
More information about the Spice-devel
mailing list