<function name="rpcf_get_new_secret" id="0x0060"> <input> <integer name="secret_size" default="8"/> </input> <output> <string name="error"/> <string name="secret"/> </output> </function>
function rpcf_get_new_secret($len=8) { //0x0060 $ret=array(); if (!$this->connection->urfa_call(0x0060)) { print "Error calling function ". __FUNCTION__ ."\n"; return FALSE; } $packet = $this->connection->getPacket(); $packet->DataSetInt($len); $this->connection->urfa_send_param($packet); if ($x = $this->connection->urfa_get_data()) { $ret['error'] = $x->DataGetString(); $ret['secret'] = $x->DataGetString(); // $this->connection->urfa_get_data(); } // 0 Error return $ret; }