MDD:
This is a pure-Tcl replacement for Tcl-DP. It was originally developed by Steve Wahl, as part of the Eolas Spynergy Toolkit.
dp_RPC.tcl is released under the BSD license, so reuse/modify it freely.
To incorporate it into your own application, all you have to do is source the single http://www.eolas.net/tcl/spynergy/rpc/dp_RPC.tcl file, and then start using the commands.
The command documentation can be viewed at http://www.eolas.net/tcl/spynergy/rpc/
Example client and server applications can be seen at rpc-DB.