1.

Solve : vnc like software programming general question?

Answer»

Hey Guys,

Im looking at creating a VNC application like realVNC and tightVNC and not sure where to start. I usually progam in VB and C++

any ideas?Hey there,

I tried looking and couldn't find the programming language that is constructed with. However, there is one you could try and it's browser BASED. I haven't tried this but here is the link.

http://engineering.linkedin.com/javascript/vncjs-how-build-javascript-vnc-client-24-hour-hackday

Regards,
B2Source Code for Real VNC has been open source for years. Curious as to why you are trying to reinvent the wheel with your own? For connecting to other peoples computers for free, other then VNC and RDP I have also used Crossloop, but haven't used crossloop in a couple years. The link below claims to be source code for VNC, I have not verified this, so download with caution. The original source code around version 3.7 was used to make a hack tool called Black VNC which took advantage of password exploit where no password was necessary to connect to password protected systems/servers online with the server service running READY to accept incomming connections. I had my Vent Server get hit by BlackVNC exploit. This no password required exploit was corrected in version 4.1 and newer. I never thought about digging into the source code of VNC, never needed to reinvent or modify the wheel etc.
http://www.afterdawn.com/software/source_codes/realvnc.cfm

I worked on a project a bunch of years ago in college to pass display from one computer to another using the PrintScreen function and pass this information over network from one computer to another using C++ 6.0 to write my code pre .Net. But the problem was that it was extremely memory and network bandwidth consuming and laggy since it was grabbing the screenshots as bitmaps and passing the bitmap data across the network to the other computer where it had to constantly refresh between 2 bitmap files. I had to use 2 bitmap files because of file-in-use errors. Using 2 bitmap files for screenshots allowed for one of the files to be updated while the other was loaded by the client program and in use. The client program alternated between these 2 bitmap files to UPDATE the video display on the viewer program. Due to very poor performance, I gave up on this program. But I was thinking originally that I might be able to pass keyboard and mouse controls across to it, but I gave up on it when it behaved so poorly with the design that I used to sort of exploit PrintScreen and Clipboard in the way that I did. My professor gave me 100% on this project even though it wasnt performing as WELL as I had wanted it to. I was hoping to get faster screen refreshes but when doing so WOULD run into race conditions. He said that my code was flawless and it was just a poor design, so he gave me 100% for effort, creativity, and flawless C++ sourcecode. If I could have passed the data back as a smaller format such as JPG vs BMP it would have improved the performance some I suppose, but with inexpensive PC Anywhere and free ways to do this VNC etc, I gave up on writing my own. All the books I had on handling images with C++ referred to how to display bitmaps, none showed how to handle JPG's. That and none showed how to capture display and store the capture, so I sort of cheated by using a PrintScreen keyboard macro routine that was called out to repeatedly in a loop and passing that to clipboard and another routine to grab from clipboard and write to bitmap files 1 image per 3 seconds to avoid a race condition and allow 6 seconds for each bitmap image to make it to the viewing computer and be displayed etc. It was a slow and poorly constructed way to do this, but it worked for displaying the remote systems entire display at full window on the system viewing the remote system.



Discussion

No Comment Found