The Silly X protocol compressor gateway. (A Really Gross Hack) 

This program provides upto 75% compression of the X protocol stream. 
It is intended to be used to improve the performance of X applications 
over a slow internet connection.  (e.g. slip,cslip. or term)  It assumes 
a Unix operating system at  both ends of the link. 

 WARNING WARNING  DANGER DANGER 
 If you use this program use xauth to provide SECURITY, since 
 host-based security will be BYPASSED. 

Compilation: 
xmkmf 
make 
-or-
make CC=gcc (if you have gcc, this compiles fine under Sunos 4.1.3.)

If this doesn't work you may have to compile it manually, if your compiler 
claims to be ANSI, but you don't have stdlib.h use -DNOSTDLIBPLEASE, if 
your system is POSIX try -D_POSIX_SOURCE.  If your system is vanilla BSD 
cc -o sxpc sxpc.c should just work. 

Usage: 

On X server host: 
sxpc local $DISPLAY 

On X clients' host:
For csh based shells:
setenv DISPLAY `sxpc remote $DISPLAY `

For sh based shells:
DISPLAY=`sxpc remote $DISPLAY`
export DISPLAY
(where $DISPLAY is the display setting you would normally use
to connect to the X server from the clients' host.) 

-Rob Ryan 
robr@cmu.edu 
/* 
Copyright Rob Ryan and Carnegie Mellon University 1993  - All Rights Reserved 

Permission to use, copy, modify, and distribute this software and its    
documentation for any purpose is hereby granted without fee, provided 
that the above copyright notice appear in all copies and that both that 
copyright notice, this permission notice, and the following disclaimer 
appear in supporting documentation, and that the name Carnegie Mellon 
University, not be used in advertising or publicity pertaining to 
distribution of the software without specific, written prior permission. 
                                  
CARNEGIE MELLON UNIVERSITY AND ROB RYAN 
DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 
AND FITNESS FOR ANY PARTICULAR PURPOSE.  
IN NO EVENT SHALL CARNEGIE MELLON UNIVERSITY, OR 
ROB RYAN BE LIABLE FOR ANY SPECIAL, INDIRECT OR 
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER 
RESULTING FROM LOSS OF USE, DATA, OR PROFITS, 
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE, OR 
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
CONNECTION WITH THE USE OR PERFORMANCE OF THIS 
SOFTWARE.    
*/ 
