"vncviewer.jar" location?

Léa Massiot lmbox "at" wanadoo.fr
Fri Jun 8 16:28:00 2007


On Fri, 2007-06-08 at 14:07 +0100, Robin Hill wrote:

> Yes, "pretending to be" isn't quite right.  It's acting as a very basic
> web server, probably only responding to a couple of specific requests.
OK.

> If you look at the source for the web page, there's an "object" tag
> which causes the browser to embed that object into the web page.  
Which source code? A source code corresponding to a ".class" file
archived in the ".jar" file?
Where to see the "object" tag you are talking about?

> The object in this case is the java VNC viewer application.  As you say,
> once loaded it'll run the "main" method from whichever .class file the
> code said to use.
OK.

> Yes - the first thing the java application will do is pop up the dialog
> to get the connection details.
Ok.

> Pretty much, yes - the browser (as an HTTP client) connects to the
> VNC server (acting as an HTTP server) using the HTTP protocol (over
> TCP/IP).  The .class files are stored together in a .jar file which is
> what the client requests to download.  The .jar file is "embedded" within
> the winvnc4.exe file (in the same way that the text for the server
> configuration dialog, or the taskbar icon, is "embedded" - they're just
> blocks of data that were compiled into the application).
Ok, that is quite clear.

> No, the second connection is from the java application as an RFB client
> - there's no HTTP involved at all (and the browser itself isn't really
> involved - its only job is to host the java application -
Ok, I do not yet understand how the JRE and applets work
but I will soon and then everything will be clearer.
It's true that if I kill my browser I kill the RFB client too.
When I kill the browser I also kill the JRE...

> you could run the vncviewer java application from the command line if you wanted).
Yes but it would'nt be the same process at all, would it be?
You are talking about the other solution proposed by "RealVNC" which
uses directly a client program to connect to the VNC server on port
5900, aren't you?

> This connects to the VNC server (acting as an RFB server) using the RFB
> protocol (again, over TCP/IP).  This acts in exactly the same way as a
> connection made using the standard vncviewer application - the same
> protocol, messages, etc. are used.
OK.

> Cheers,
>         Robin

Cheers,

--
Leon