From: Anthony Liguori <anthony@codemonkey.ws>
To: Ramesh Dharan <rrdharan@vmware.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Support VNC PointerTypeChange psuedo-encoding
Date: Thu, 29 Mar 2007 22:23:31 -0500 [thread overview]
Message-ID: <460C82B3.2080600@codemonkey.ws> (raw)
In-Reply-To: <B5B0B6057C6EF646AE624E6B0BEFA1997DCDA9@PA-EXCH02.vmware.com>
Ramesh Dharan wrote:
>> The proper way to use new client message types (which is now
>> described
>> in the RFB spec) is to advertise a new pseudo-encoding for
>> that client
>> message type and wait for the server to send the
>> pseudo-encoding back to
>> the client. That lets the client know that it is safe to use the new
>> client message type. This is what I'm using for my shared
>> memory encoding.
>>
>> Otherwise, there's no way to write a client that works with the
>> "enhanced" server and a normal VNC server.
>>
>
> Ok, yeah that makes sense. So yeah basically we would need to add new server
> encodings for our client->server messages, and then you get the server to
> send dummy "ack" messages for each one to say "yes, I understand this message
> type"?
>
Yup.
>> The mechanism I described above is what the current preferred method
>> is. If you want, we can bring the topic up with the VNC authors as
>> AFAIK I'm the only person with a reserved client message type. Of
>> course, I think using a pseudo-encoding is a perfectly
>> suitable way to
>> address this problem.
>>
>
> Yeah the only problem I see with it is that I don't see how the server can
> dynamically *change* the set of client messages that it accepts?
>
To do it in general? Yeah, I don't think there's a solution. Of
course, a SetServerEncodings would introduce a race. What does the
server do if it receives one of the new special client messages after
sending the SetServerEncodings message (but before the client receives
the SetServerEncodings message)?
I think it's easier to just add something to the psuedo-encoding to
allow client messages that make sense to disable to be disabled on a
case-by-case basis.
Regards,
Anthony Liguori
> --
> Ramesh
>
>
next prev parent reply other threads:[~2007-03-30 3:26 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-08 20:19 [Qemu-devel] [PATCH] Support VNC PointerTypeChange psuedo-encoding Nolan Leake
2007-01-08 20:52 ` Ramesh Dharan
2007-03-25 16:22 ` Anthony Liguori
2007-03-30 1:25 ` Ramesh Dharan
2007-03-30 2:55 ` Anthony Liguori
2007-03-25 17:20 ` Anthony Liguori
2007-03-30 0:54 ` Ramesh Dharan
2007-03-30 2:37 ` Anthony Liguori
2007-03-30 3:14 ` Ramesh Dharan
2007-03-30 3:23 ` Anthony Liguori [this message]
2007-03-30 3:26 ` Ramesh Dharan
-- strict thread matches above, loose matches on Subject: below --
2007-01-06 3:30 Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=460C82B3.2080600@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
--cc=rrdharan@vmware.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).