dp_admin

Syntax

dp_admin register chanID ?-check checkCmd?
dp_admin delete
chanID

Comments

dp_admin registers a channel so that RPCs or RDOs may be performed using that channel. Call dp_admin delete before closing an RPC channel in order to clean up the internal DP structures associated with this channel.

checkCmd is an optional Tcl script that will be called with the RPC as the argument before the RPC is executed. If checkCmd returns an error, the RPC will not be executed and an error will be returned to the sender.

dp_admin returns 0 if all went well or 1 if there was an error.

Examples

dp_admin register $newRpcChan
dp_admin delete $oldRpcChan