當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Net_DNS2_Packet::label方法代碼示例

本文整理匯總了PHP中Net_DNS2_Packet::label方法的典型用法代碼示例。如果您正苦於以下問題:PHP Net_DNS2_Packet::label方法的具體用法?PHP Net_DNS2_Packet::label怎麽用?PHP Net_DNS2_Packet::label使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Net_DNS2_Packet的用法示例。


在下文中一共展示了Net_DNS2_Packet::label方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: rrSet

 /**
  * parses the rdata of the Net_DNS2_Packet object
  *
  * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from
  *
  * @return boolean
  * @access protected
  *
  */
 protected function rrSet(Net_DNS2_Packet &$packet)
 {
     if ($this->rdlength > 0) {
         $this->psdnaddress = Net_DNS2_Packet::label($packet, $packet->offset);
         return true;
     }
     return false;
 }
開發者ID:TeamSF,項目名稱:itdb-green,代碼行數:17,代碼來源:X25.php

示例2: rrSet

 /**
  * parses the rdata of the Net_DNS2_Packet object
  *
  * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from
  *
  * @return boolean
  * @access protected
  *
  */
 protected function rrSet(Net_DNS2_Packet &$packet)
 {
     if ($this->rdlength > 0) {
         $offset = $packet->offset;
         $this->cpu = trim(Net_DNS2_Packet::label($packet, $offset), '"');
         $this->os = trim(Net_DNS2_Packet::label($packet, $offset), '"');
         return true;
     }
     return false;
 }
開發者ID:altesien,項目名稱:FinalProject,代碼行數:19,代碼來源:HINFO.php

示例3: rrSet

 /**
  * parses the rdata of the Net_DNS2_Packet object
  *
  * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from
  *
  * @return boolean
  * @access protected
  *
  */
 protected function rrSet(Net_DNS2_Packet &$packet)
 {
     if ($this->rdlength > 0) {
         $offset = $packet->offset;
         $this->previous = Net_DNS2_Packet::label($packet, $offset);
         $this->next = Net_DNS2_Packet::label($packet, $offset);
         return true;
     }
     return false;
 }
開發者ID:martinsv,項目名稱:phpipam,代碼行數:19,代碼來源:TALINK.php

示例4: rrSet

    /**
     * parses the rdata of the Net_DNS2_Packet object
     *
     * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from
     *
     * @return boolean
     * @access protected
     *
     */
    protected function rrSet(Net_DNS2_Packet &$packet)
    {
        if ($this->rdlength > 0) {

            $this->isdnaddress = Net_DNS2_Packet::label($packet, $packet->offset);

            //
            // look for a SA (sub address) - it's optional
            //
            if ( (strlen($this->isdnaddress) + 1) < $this->rdlength) {

                $this->sa = Net_DNS2_Packet::label($packet, $packet->offset);
            } else {
            
                $this->sa = '';
            }

            return true;
        }

        return false;
    }
開發者ID:KingsleyGU,項目名稱:osticket,代碼行數:31,代碼來源:ISDN.php

示例5: rrSet

    /**
     * parses the rdata of the Net_DNS2_Packet object
     *
     * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from
     *
     * @return boolean
     * @access protected
     *
     */
    protected function rrSet(Net_DNS2_Packet &$packet)
    {
        if ($this->rdlength > 0) {
            
            //
            // unpack the order and preference
            //
            $x = unpack('norder/npreference', $this->rdata);
            
            $this->order        = $x['order'];
            $this->preference   = $x['preference'];

            $offset             = $packet->offset + 4;

            $this->flags        = Net_DNS2_Packet::label($packet, $offset);
            $this->services     = Net_DNS2_Packet::label($packet, $offset);
            $this->regexp       = Net_DNS2_Packet::label($packet, $offset);

            $this->replacement  = Net_DNS2_Packet::expand($packet, $offset);

            return true;
        }

        return false;
    }
開發者ID:KingsleyGU,項目名稱:osticket,代碼行數:34,代碼來源:NAPTR.php

示例6: rrSet

 /**
  * parses the rdata of the Net_DNS2_Packet object
  *
  * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from
  *
  * @return boolean
  * @access protected
  *
  */
 protected function rrSet(Net_DNS2_Packet &$packet)
 {
     if ($this->rdlength > 0) {
         //
         // parse the preference
         //
         $x = unpack('npreference', $this->rdata);
         $this->preference = $x['preference'];
         //
         // get the exchange entry server)
         //
         $offset = $packet->offset + 2;
         $this->exchange = Net_DNS2_Packet::label($packet, $offset);
         return true;
     }
     return false;
 }
開發者ID:TeamSF,項目名稱:itdb-green,代碼行數:26,代碼來源:KX.php

示例7: rrSet

    /**
     * parses the rdata of the Net_DNS2_Packet object
     *
     * @param Net_DNS2_Packet &$packet a Net_DNS2_Packet packet to parse the RR from
     *
     * @return boolean
     * @access protected
     *
     */
    protected function rrSet(Net_DNS2_Packet &$packet)
    {
        if ($this->rdlength > 0) {
            
            $length = $packet->offset + $this->rdlength;
            $offset = $packet->offset;

            while ($length > $offset) {

                $this->text[] = Net_DNS2_Packet::label($packet, $offset);
            }

            return true;
        }

        return false;
    }
開發者ID:KingsleyGU,項目名稱:osticket,代碼行數:26,代碼來源:TXT.php


注:本文中的Net_DNS2_Packet::label方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。