acs::Cluster method message decode (protected)

 <instance of acs::Cluster[i]> message decode

Defined in packages/acs-tcl/tcl/cluster-procs.tcl

Return a dict of the decoded message TODO: add timestamp?

Testcases:
No testcase defined.
Source code:
dict set r cmd [ns_queryget cmd]
dict set r peer [ns_queryget f]
dict set r timestamp [ns_queryget t]
dict set r signature [ns_queryget s]
dict set r peeraddr [ns_conn peeraddr]
dict with r {
    if {![:message verify [list $cmd $timestamp$signature]} {
        error "received message from $peeraddr does not match signature: $r"
    }
}
return $r
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: