亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? optionalattribute.java

?? stun的java實現
?? JAVA
字號:
/*
 * Stun4j, the OpenSource Java Solution for NAT and Firewall Traversal.
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */
package net.java.stun4j.attribute;

import net.java.stun4j.StunException;
import java.util.*;

/**
 * This class is used for representing attributes not explicitly supported by
 * the stack. Such attributes will generally be kept in  binary form and won't be
 * subdued to any processing by the stack. One could use this class for both
 * dealing with attributes in received messages, and generating messages
 * containing attributes not explicitly supported by the stack.
 *
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Organisation: Louis Pasteur University, Strasbourg, France</p>
 *                   <p>Network Research Team (http://www-r2.u-strasbg.fr)</p></p>
 * @author Emil Ivov
 * @version 0.1
 *
 */
public class OptionalAttribute
    extends Attribute
{
    byte[] attributeValue = null;

    protected OptionalAttribute(char attributeType)
    {
        super(attributeType);
    }

    /**
     * Sets this attribute's fields according to attributeValue array.
     *
     * @param attributeValue a binary array containing this attribute's
     *   field values and NOT containing the attribute header.
     * @param offset the position where attribute values begin (most often
     *   offset is equal to the index of the first byte after length)
     * @param length the length of the binary array.
     * @throws StunException if attrubteValue contains invalid data.
     */
    void decodeAttributeBody(byte[] attributeValue, char offset, char length)
        throws StunException
    {
        this.attributeValue = new byte[length];
        System.arraycopy(attributeValue, offset, this.attributeValue, 0, length);
    }

    /**
     * Returns a binary representation of this attribute.
     *
     * @return a binary representation of this attribute.
     */
    public byte[] encode()
    {
        char type = getAttributeType();

        byte binValue[] = new byte[HEADER_LENGTH + attributeValue.length];

        //Type
        binValue[0] = (byte)(type>>8);
        binValue[1] = (byte)(type&0x00FF);
        //Length
        binValue[2] = (byte)(getDataLength()>>8);
        binValue[3] = (byte)(getDataLength()&0x00FF);

        System.arraycopy(attributeValue, 0,
                         binValue, HEADER_LENGTH, attributeValue.length);

        return binValue;
    }

    /**
     * Returns the length of this attribute's body.
     *
     * @return the length of this attribute's value.
     */
    public char getDataLength()
    {
        return (char)attributeValue.length;
    }

    /**
     * Returns the human readable name of this attribute.
     *
     * @return this attribute's name.
     */
    public String getName()
    {
        return "Unknown Attribute";
    }

    /**
     * Returns a reference to the unparsed body of this attribute.
     *
     * @return a reference to this attribute's unparsed value.
     */
    public byte[] getBody()
    {
        return attributeValue;
    }

    /**
     * Copies the speicified byte array segment as the body of this attribute.
     *
     * @param body the body to copy
     * @param offset the position to start
     * @param length the length to copy
     */
    public void setBody(byte[] body, int offset, int length)
    {
        this.attributeValue = new byte[length];
        System.arraycopy(body, offset, this.attributeValue, 0, length);
    }


    /**
     * Compares two STUN Attributes. Two attributes are considered equal when they
     * have the same type length and value.
     *
     * @param obj the object to compare this attribute with.
     * @return true if the attributes are equal and false otherwise.
     */
    public boolean equals(Object obj)
    {
        if(obj == null
          || !(obj instanceof OptionalAttribute) )
            return false;

        return
            (obj == this
             || Arrays.equals(((OptionalAttribute)obj).
                              attributeValue, attributeValue));
    }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久免费看少妇高潮| 欧美日韩国产大片| 国产福利视频一区二区三区| 精品在线你懂的| 国产精品一区一区| 99久久国产综合精品色伊| 另类小说图片综合网| 一区二区在线观看不卡| 亚洲在线观看免费| 韩国午夜理伦三级不卡影院| 风流少妇一区二区| 国产精品18久久久久久vr| eeuss国产一区二区三区| 色婷婷一区二区| 67194成人在线观看| 久久久久久综合| 亚洲成人综合视频| 国产成人免费视频一区| 欧洲精品一区二区| 欧美高清一级片在线| 久久久久国产精品麻豆| 亚洲一区二区四区蜜桃| 久久99精品网久久| 91国产视频在线观看| 欧美精品一区二区三区高清aⅴ| 精品国产一二三| 伊人色综合久久天天人手人婷| 丝袜诱惑亚洲看片 | 欧美福利一区二区| 久久精品男人的天堂| 国产精品天美传媒沈樵| 五月天网站亚洲| bt欧美亚洲午夜电影天堂| 日本一区二区高清| 国产a精品视频| 中文字幕佐山爱一区二区免费| 成人国产精品视频| 国产精品电影一区二区三区| 99精品视频一区| 国产成人综合亚洲网站| 欧美大片免费久久精品三p | 国产成人av影院| 国产精品免费视频观看| 成人精品亚洲人成在线| 一区二区三区日本| 日韩免费成人网| 91精品国产综合久久婷婷香蕉| 奇米影视一区二区三区小说| 亚洲精品一区二区三区99| 成人免费视频视频在线观看免费| 国产精品乱码一区二三区小蝌蚪| 91色婷婷久久久久合中文| 蜜臀久久99精品久久久久久9| 2024国产精品| 欧美日韩在线播放三区| 国内精品国产成人| 亚洲已满18点击进入久久| 日韩视频免费观看高清完整版在线观看| 国产精品一区久久久久| 亚洲国产精品麻豆| 亚洲女同女同女同女同女同69| 欧美三级在线看| 精品成人一区二区| 3d成人h动漫网站入口| 日韩欧美一卡二卡| 国产精品嫩草影院av蜜臀| 亚洲欧美日韩国产中文在线| 亚洲高清中文字幕| 久久国产精品99久久久久久老狼| 日精品一区二区三区| 国产综合色视频| 国产麻豆精品视频| 久久99精品久久久久久国产越南| 亚洲第一搞黄网站| 一区二区三区在线免费| 日一区二区三区| 午夜视频在线观看一区| 亚洲综合丁香婷婷六月香| 亚洲人成网站影音先锋播放| 国产精品人妖ts系列视频| 欧美激情一区二区三区在线| 精品成人a区在线观看| 久久久久99精品国产片| 亚洲国产精品av| 亚洲美女屁股眼交| 亚洲成人在线网站| 男女男精品视频网| 狠狠色丁香婷综合久久| 粉嫩一区二区三区性色av| www.一区二区| 欧美一区二区三区四区五区 | 秋霞成人午夜伦在线观看| 91天堂素人约啪| 日本一区二区三级电影在线观看| 日韩精品色哟哟| 欧美久久久一区| 亚洲成人免费影院| 欧美精品1区2区3区| 亚洲国产aⅴ成人精品无吗| 日本道精品一区二区三区| 亚洲女同一区二区| 欧美三级在线看| 日韩国产欧美在线播放| 日韩一区二区三区av| 毛片一区二区三区| 精品国产区一区| 国产99久久久久| 亚洲黄色av一区| 欧美午夜片在线看| 亚洲图片欧美一区| 日韩三级免费观看| 国内外精品视频| 亚洲欧美在线视频| 欧美性一级生活| 久久国产精品色婷婷| 中文字幕巨乱亚洲| 欧美三级日韩三级| 日本sm残虐另类| 国产精品久久久久毛片软件| 欧美天堂一区二区三区| 免费成人性网站| 国产精品国产三级国产aⅴ原创| 一本一本久久a久久精品综合麻豆 一本一道波多野结衣一区二区 | 欧美日韩视频一区二区| 国产激情一区二区三区四区| 亚洲精品伦理在线| 26uuuu精品一区二区| 在线亚洲+欧美+日本专区| 极品少妇xxxx偷拍精品少妇| 尤物在线观看一区| 国产精品乱人伦| 精品福利在线导航| 91麻豆精品久久久久蜜臀 | 青青国产91久久久久久| 成人欧美一区二区三区视频网页| 91精品欧美一区二区三区综合在 | 色婷婷久久99综合精品jk白丝| 另类欧美日韩国产在线| 一区二区三区在线高清| 欧美国产精品一区二区三区| 欧美mv和日韩mv的网站| 欧美老年两性高潮| 欧美日韩激情一区二区| 日本丶国产丶欧美色综合| eeuss国产一区二区三区| 高清不卡一区二区| 成人动漫一区二区在线| 成人免费毛片app| 99视频有精品| 欧美视频精品在线| 在线播放中文字幕一区| 337p亚洲精品色噜噜狠狠| 欧美老肥妇做.爰bbww| 欧美精品欧美精品系列| 91精品免费观看| 精品久久久久久久久久久院品网 | 在线欧美日韩精品| 欧美三级午夜理伦三级中视频| 91精品国产品国语在线不卡| 777亚洲妇女| 一区二区三区在线视频观看58| 亚洲无线码一区二区三区| 久久精品免费观看| 成人精品鲁一区一区二区| 色综合久久中文综合久久97| 在线视频综合导航| 欧美xxxxx牲另类人与| 18成人在线观看| 日韩精品电影一区亚洲| 粉嫩高潮美女一区二区三区| 欧美私人免费视频| 久久影院视频免费| 亚洲伊人伊色伊影伊综合网| 国产精品77777| 欧美日韩综合色| 日韩码欧中文字| 国产一区二区调教| 欧美色手机在线观看| 久久蜜臀精品av| 精品一区免费av| 欧美日韩另类国产亚洲欧美一级| 久久精品日韩一区二区三区| 日日嗨av一区二区三区四区| 99综合电影在线视频| 久久久久久久综合日本| 激情综合色播激情啊| 欧美伦理影视网| 视频在线在亚洲| 欧美在线免费观看亚洲| 亚洲精品视频自拍| av色综合久久天堂av综合| 国产精品丝袜一区| 国产真实乱子伦精品视频| 日韩欧美中文一区二区| 免费观看日韩电影| www久久久久| 国产成人自拍高清视频在线免费播放| 日韩精品一区二| 国产999精品久久| 国产精品污网站|