Tcl-DP: Id Server This example creates a simple Id server, where an Id is an integer. Two very short Tcl/Tk scripts are supplied: idServer.tcl -- the Tcl/Tk script for the server idClient.tcl -- the Tcl/Tk script for the client Please read them and edit them as they suggest. -------------------------------------------------------------------- To run the idServer... Run dpwish. Type "source idServer.tcl". -------------------------------------------------------------------- To run the idClient... Run dpwish, as another process. Type "source idClient.tcl". -------------------------------------------------------------------- From the idClient dpwish, type your own RPC commands to experiement with the system. Remember, the arguments you give to the RPC command are evaluated in the idServer's interpreter, and the result of that remote evaluation is returned. For example, in the idClient dpwish, you can type: RPC $server expr 1+2 RPC $server set x 100 expr $x RPC $server eval {expr $x+$x} RPC $server puts stdout hello To get more id's, type: RPC $server GetId -------------------------------------------------------------------- Try running more than one idClient.