Skip to content

Echos Protocol Version, Even When Not Supported #2

@TaylorSMarks

Description

@TaylorSMarks

Currently in VncClient::frb_wait_for_version(), it simply echos the protocol version, even when it's unrecognized / not supported.

For example, the current version of RealVNC uses RFB 004.001. Thus far, this protocol hasn't been published (and I've heard that as of 2012, RFB 004.yyy won't have the protocol publicly released like the RFB 003.yyy series was.) Simply returning RFB 004.001 doesn't work, because the server never sends anything after the client sends ClientInit - most likely in this new version ClientInit requires something more to be sent than in prior versions.

As a work around, I have a few lines in VncClient::frb_wait_for_version() commented out and replaced with this:

write("RFB 003.008\n");
_proto_hi_version = 3;
_proto_lo_version = 8;

A better solution would be to check what you're given, and if it's recognized, echo that, and if it's not, echo RFB 003.008\n. (If I get around to doing this myself, I'll make a pull request.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions