XML

  <function name="rpcf_get_ipgroup" id="0x2902">
    <input>
      <integer name="ipgroup_id"  />
    </input>
    <output>
      <string name="name" />
      <integer name="ipzone_count" />
      <for name="i" from="0" count="ipzone_count">
        <ip_address name="ip"  array_index="i" />
        <ip_address name="mask" array_index="i" />
        <ip_address name="gateaway" array_index="i" />
      </for>
    </output>
  </function>

PHP

function rpcf_get_ipgroup($ipgroup_id) { //0x2902
    $ret=array();
    if (!$this->connection->urfa_call(0x2902)) {
        print "Error calling function ". __FUNCTION__ ."\n";
        return FALSE;
    }
    $packet = $this->connection->getPacket();
    $packet->DataSetInt($ipgroup_id);
    $this->connection->urfa_send_param($packet);
    if ($x = $this->connection->urfa_get_data()){
       $ret['name']=$x->DataGetString();
       $ret['count']=$x->DataGetInt();
       for ($i=0;$i<$ret['count'];$i++) {
          $set['ip']=$x->DataGetIPAddress();
          $set['mask']=$x->DataGetIPAddress();
          $set['gateway']=$x->DataGetIPAddress();
          $ret['ipgroup'][]=$set;
       }
    }
    return $ret;
}
 
/home/u18456/wiki.flintnet.ru/www/data/pages/function_admin/function_name_rpcf_get_ipgroup_id_0x2902.txt · Последние изменения: 2009/02/18 19:27 (внешнее изменение)
 
За исключением случаев, когда указано иное, содержимое этой вики предоставляется на условиях следующей лицензии:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki