Xes Client Example.
-------------------

Xes Client is an example of a program that can send CSimul events to
Xes. 

*** NOTE THAT THIS FEATURE IS EXPERIMENTAL. ***

Xes must be run with the -server option. The option requires a
file name with or without extension .esp (for Esterel Simulation
Port). Xes will start server  on a port, and write in this file its
host (currently localhost), and the port. 
A client (one at a time) can connect to this port and then send CSimul 
events.

This directory contains :

- xesclient.c : 
    A C client example. It provides two functions:
    * XesGetServerInfo : retreive information contained in a .esp file

    * XesOpenSocket : open the connection with the Xes server.

    * a main function. 

    xesclient has been tested on Linux, Sun Solaris 5.5 & 5.6,
    WindowsNT.

    * Unix: edit the Makefile file and type make. It will build
      xesclient program

    * WindowsNT: type nmake /f xesclient.mak. It will build
      .\Release\xesclient.exe
                
    Execute "xesclient file.esp", where file is the argument of
    the Xes' -server option. A  prompt (> ) appears. You can then
    send directly CSimul events. To disconnect, simply stop xesclient
    by sending ^D on Unix and ^Z on WindowsNT

- xesclient.pl : 
    A Perl version, that can send events from stdin, or 
    from a file with possible delay. See -help option for details.

- xesclient.tcl:
    A Tcl file that contains that contains functions to initiate a
    connection  and send events, and a small example for the watch. 
    Run "wish xesclient.tcl file.esp"

Wristwatch Example
------------------
    A example of this kind of communication has been written for the
    wristwatch example. The Xes simulator (xww.exe) is run with the -server
    option, while the Tk watch is run with a -client option. Each time 
    tkww.exe sends inputs to its automaton, it also sends the same
    event to xww.exe

    In the wristwatch directory, try:

    - Unix boxes:

	make -f Makefile.Unix clientserver

    - Windows NT:

        nmake -f Makefile.VC clientserver
