in

CodePrairie .NET

South Dakota .NET User Group

I Hate Linux

Proof of Concept: Silverlight based VNC client

Forward: I would advise not looking for potential meanings of the below post or infer potential new features of Windows Home Server as it all involves things I was doing on my own time and for my own nefarious purposes.

The other weekend I had a little free time on my hands and thought: “Wouldn't it be cool (and useful) if there was a Remote Desktop client that ran completely within the context of Silverlight?”

After a quick read of the core spec behind RDP... I decided that a simpler protocol would probably be good to do as a proof of concept first of the general idea.

Which protocol did I pick? RFB (PDF warning), the basis for VNC.

So last weekend I sat down and began writing a proof of concept VNC client, first as a WinForms app but with frequent compilations for Silverlight (to ensure that I only used classes/methods that exist under both), and late Thursday night after writing a quick and dirty 125 line long proxy server (to work around the built in port and host address limitations), it all just worked at last.

Behold, a ugly shot of it in action:

VNC via Silverlight

(Click for larger version)

Why so ugly? To save time I only implemented a couple of the most simple video encoding methods that VNC supports which cuts me off from some of the more pretty color possibilities. Adding others won’t be very difficult, however improving some of the core services I wrote would be a better use of my time.

Why XP? When I quit using VNC back in about 2005 it was due to my upgrading to Vista and the two of them not getting along well (due to the Vista security feature known as session 0 isolation)... and I had it handy in a VM.

When will it be released? Certainly not in it’s present form as it is rather insecure at present as it doesn’t support any authentication (mostly because I opted not to write a DES encryption provider which Silverlight lacks). Also likely not in future because of the prototype nature of this code and my almost certainly not having enough time to take on and manage another side project (my day job keeps me plenty busy).

I also need to say that the new improvements to the MediaStreamSource class in Silverlight 3 are pretty cool as they enable you to manually generate a video and specify the raw RGB bits of each frame.

This while does kind of serve as a reminder to me… rather than spend time implementing things that already exist (this, DHCP4WHS, a C# based DNS server I wrote a few years back, plenty of other half completed network clients or file format parsers)... I should focus (when writing code on my own time) on building new things that do not yet exist... shame I’m not the most creative in that way.

Read the complete post at http://feedproxy.google.com/~r/IHateLinux/~3/K1cTnbhwINQ/proof-of-concept-silverlight-based-vnc.html

Published May 16 2009, 04:03 AM by I Hate Linux
Filed under:
Powered by Community Server (Commercial Edition), by Telligent Systems