[Previous] [Contents] [Index] [Next]

phrelay

Support remote connectivity with phindows and phditto clients

Syntax:

phrelay [-T idletime [,retries]]
        [-V... [-D debugfile]]

Options:

-T idletime [,retries]
Idle timeout. Pulse link after idletime seconds of inactivity. Shut down after the specified number of unsuccessful retries.
-V... [-D debugfile]
Be verbose. Add more V's for greater verbosity. Output is sent to the QNX debug file or device you specify in debugfile.

Description:

The phrelay utility is the server side of Photon's Jump Gate Connectivity technology. It supports remote user interface clients on other nodes.

Remote connectivity via modem

When you specify a modem (using the -m option to phditto or phindows), the remote client first acts as a simple text terminal emulator so you can interact with the modem, dial up a remote QNX machine, and log in.

Once you're logged in, you can start a Photon session by entering the following command:

exec /usr/photon/bin/phrelay

The remote client synchronizes with phrelay and starts to function as a Photon graphics terminal.

Remote connectivity via TCP/IP

When you specify a TCP/IP connection (using the -t option to phditto or phindows), the inetd program running on the remote QNX host automatically launches phrelay for you, provided phrelay and inetd have been configured properly (see below).

Configuring for TCP/IP

There are several configuration issues that need to be taken care of before you can use phrelay over TCP/IP.

First, the QNX host must have TCP/IP installed and running. In addition, inetd must be running with the following items added to the inetd configuration file /etc/inetd.conf:

phrelay stream tcp nowait root /usr/photon/bin/phrelay phrelay

In the file /etc/services file, add the following line:

phrelay 4868/tcp

These two entries will cause inetd to listen for incoming requests to establish a new Photon session. When a request is detected (from a remote phindows or phditto client), inetd will automatically establish a full TCP/IP connection and launch phrelay on that connection. The remote phindows or phditto client will then be fully connected to a local Photon session.

Using predefined Photon services

The -s command-line option of phditto and phindows is provided to simplify the task of creating shortcuts to Photon applications within the MS-Windows desktop.

By using the -s option, you can create an icon or shortcut on the MS-Windows desktop to start up a Photon application automatically (within a private phindows session). With proper specification of the remote Window Manager options, it's possible to make that Photon application look like it's a native MS-Windows application.

When phrelay runs on the QNX host machine, it will look up the Photon service specified with the -s parameter in a configuration file (/etc/config/phrelay[.node]). If a matching service is found, then phrelay will launch the specified Photon command instead of the default Photon desktop. Optional Window Manager options can be specified, but the default mode is to start the remote Photon application so that it looks and behaves as if it were a native MS-Windows application.

The phditto/phindows -U option is often used with the -s option to specify a QNX userid to use when running the remote Photon command. If no userid is given, and the phrelay service doesn't specify a default userid, then Photon will pop up the QNX Photon Login dialog requesting the QNX userid before proceeding. By specifying a userid with the -U option, you can avoid this login dialog.

For example, if a MS-Windows shortcut were created as follows:

phindows -tx.x.x.x -svpoker -Ujoe

where the IP address x.x.x.x specified the TCP/IP address of QNX node 2, and the phrelay configuration file on node 2 (/etc/config/phrelay.2) contained the following line:

vpoker % /usr/photon/bin/vpoker

then Joe could directly launch a Photon vpoker session (running as QNX userid joe) on his MS-Windows desktop by clicking on the shortcut icon.

phrelay configuration file format

The phrelay utility processes requests for service according to the contents of a configuration file. If phrelay is running on QNX node n, then the file /etc/config/phrelay.n is used. If this file doesn't exist, then the default file /etc/config/phrelay is used.

The format of each service entry in the phrelay configuration file is as follows:

service user [-W pwm_options] command

where:

service is the symbolic name of the Photon service (matches the -s phindows or phditto parameter).

user defines how to process userids that may be specified on the phindows or phditto command line (-U option).

user can be one of:

userid
QNX userid (if no -U). Prompt for password if required.
userid:password
QNX userid and password (if no -U).
%
Prompt for user/password (if no -U).
?
Always prompt for user/password (ignore -U).
!
Fail (if no -U).
=userid
Force this userid (ignore -U).
=userid:password
Force this userid and password (ignore -U).

pwm_options can be one or more of the following Photon Window Manager options:

P
Disable Taskbar, console switching, and keyboard.
W
Disable Workspace menu.
R remote_option
Remote Window Manager options, where remote_option can be one or more of:
b
Remove Photon Window Manager borders.
c
Close Window Manager when program terminates.
f
Fit. Make application always fit in phditto/phindows window).
m
Initially resize application to fit in phditto/phindows window.
r
Initially resize phditto/phindows window to fit application.
t
Send Window title to phditto/phindows.

The default Window Manager options are PWRcbtfr.

command is the Photon command to launch instead of the default command, which starts the Photon desktop.

Data compression options

The phrelay utility supports one of three data compression options that can be requested by the client:

Data caching options

The phrelay utility makes very extensive use of data caching techniques to minimize the amount of data that needs to be transmitted from the host to the client machine. Thanks to this intensive data caching, phditto/phindows can operate over modem-link speeds as low as 9600 baud.

Most "large" static data objects in Photon are "tagged" with a unique 32-bit ID (tag). Tagged objects include bitmap data, image data, and color palettes. These objects are generally tagged when first created by the Photon program developers. This process is accomplished automatically by the Photon development tools, so the program developer is, for the most part, not even aware that this is taking place.

Photon passes these tags along with the data objects as they flow through the Photon event space. The end result is that Photon graphics drivers (such as phrelay) will almost always have available a small, unique, precalculated tag to identify the larger Photon graphical objects.

Examples:

From a remote phindows or phditto session, type:

exec /usr/photon/bin/phrelay

See also:

phditto


[Previous] [Contents] [Index] [Next]