XSERV

Section: LAWRENCE BERKELEY LABORATORY (n)
Updated: 1992
Index Return to Main Contents
 

NAME

Xserv - X window-based remote procedure call server  

SYNOPSIS

Xserv -p prog_num -c map_num  

DESCRIPTION

Serves incoming remote procedure calls (RPCs) to display images in a X window that are sent from the Scry client. This graphics window is created separately from the text window in which the server is invoked. The image data can be written to a disk file for later use by the Xanima movie preview program if the client chose that option (see scry_libclient).

After Xserv is invoked, two windows will appear on the screen, one a control panel, and the other the window in which images will appear. Pushing the "quit" button causes the windows to be destroyed and Xserv to exit. Entering a number in the "gamma" field will adjust the gamma value of the next image received. The default gamma value is 1, and the legal range is from 0.1 to 4. The default gamma value can be changed by resetting S_DEF_GAMMA_VALUE in scry/include/scry_limits.h before making Scry.

Xserv should run on the local workstation which will display the image. It can run on a different client, but that would defeat the whole purpose of Xserv, since in that case the XPutImage call will ship the whole uncompressed image over the network.

The RPC server calls graphics_dispatch (located in Xserv.c) based on information in the header of the incoming RPC call. Cases in graphics_dispatch correspond to supported client procedures. Routines starting with xdr_ decode incoming network information into the server format. The type of compression is set by the client, and communicated to the server as part of an RPC.

See Xanima(n) for information on using color with an 8-bit workstation, what window manager to use, and defaults.  

OPTIONS

-p
set the program number to be used. The use of different program numbers allows several servers to be active on a particular workstation simultaneously. Each corresponding client must be invoked with the identical program number (see scry_libclient(n)).
-c
sets the maximum number of colors that can be allocated by Xserv.
 

DEFAULTS

The defaults to the command line arguments are as follows:
1) The program number is 4000.
2) The maximum number of colors allocated is 221.

 

FILES

The Scry X server is located in scry/Xserv
Makefile
makes the executable of the server
xvwin.h
header file for X and XView dependent variables
Xserv.c
RPC server
xvdisplay.c
sets up image information and displays the images in the X window as they come in
 

SEE ALSO

scry_client(n), scry_libclient(n), Xanima(n)  

AUTHORS

David Robertson, Teck-Joo Chua, Max Rible, and Antony Courtney


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
DEFAULTS
FILES
SEE ALSO
AUTHORS

This document was created by man2html, using the manual pages.
Time: 01:44:43 GMT, December 05, 2024