6.20 RemoteFrameBuffer

RemoteFrameBuffer For Pharo

Gofer it
squeaksource: 'MetacelloRepository';
package: 'ConfigurationOfRFB';
((Smalltalk at: #ConfigurationOfRFB) project perform: #latestVersion) load. 

How to use it

The easiest way to configure and control the server is to open the menu:

	RFBServerGUI open

(which you can pin to the desktop if you like).

There are handy methods to quickly start/stop the server (using the default preferences and allowing empty passwords).

To start the server on the default display #0

	RFBServer start

To start the server on other display:

	RFBServer start: 1

To stop the server:

	RFBServer stop.

The prefered way to interact, configure and control the server is programmatically.

The server is implemented as a singleton because only a server can run at any time. Access the singleton with:

	RFBServer current

You can completely configure the server by sending messages to the singleton. The most important of these is:

	RFBServer current configureForMemoryConservation

that set the preferences in a way to conserve memory on the server side.

To set the view-only and full (interactive) passwords:

	RFBServer current setFullPassword: aFullPassword.
RFBServer current setViewPassword: aViewPassword.

To disable the empty passwords

	RFBServer current allowEmptyPasswords: false.

To reset the preferences to their default values:

	RFBServer current initializePreferences.

To start the server on a given display:

	RFBServer current start: aDisplayNumber.

To stop the server:

	RFBServer current stop.

This is a full example for configuring the server by code:

	RFBServer current
allowEmptyPasswords: false;
setFullPassword: 'secret';
setViewPassword: 'secret too';
start: 0.

See the comments in the methods of the RFBServer for more options.

Add a Note

Licensed under Creative Commons BY-NC-SA | Published using Pier |